2018-08-23

Автополив

Cистема автономного полива (двухканальный планировщик с допустимой нагрузкой до 500мА, при необходимости можно подключить реле постоянного тока для более мощной нагрузки)

Характеристики:
- от 1 до 4 точек полива (теоретически можно больше, но тогда труднее балансировать плечи насоса по нагрузке), или до восьми точек полива со вторым насосом
- индикация разряда аккумулятора (светодиод мигает 3 раза), -
 кнопочная настройка интервала полива (в часах, макс 24) и длительности полива (в секундах, макс 24).
- до 2х недель автономной работы (в зависимости от нагрузки)на аккумуляторе емкостью 2800мА/ч

Демонстрация работы (пример настройки расписания полива):


2018-04-23

ATmega2560 vs STM32F407


STM32F407VGT6 ATmega2560
Price $11
$9.1
Core 168 MHz 16MHz
Memories Up to 1 Mbyte of Flash memory
•Up to 192+4 Kbytes of SRAM


Program Memory Size (KB)256
SRAM Bytes 8,192
Data EEPROM/HEF (bytes) 4096
Clock, reset and supply management    

Timers

2 x 8-bit, 4 x 16-bit
Communications interfaces
4-UART, 5-SPI, 1-I2C
Analog to digital converter (ADC)

I/Os
4 Input Capture, 4 CCP, 16PWM


Atmega328 vs STM32F103


STM32F103C8T6 ATmega328
Price $1.38
$2.15
Core 72 MHz 16MHz
Memories 64 or 128 Kbytes of Flash memory
–   20 Kbytes of SRAM

32KBytes of In-System Self-Programmable Flash program
Memory
– 1KBytes EEPROM
– 2KBytes Internal SRAM
Clock, reset and supply management     2.0 to 3.6 V application supply and I/Os
–   POR, PDR, and programmable voltage
detector (PVD)
–   4-to-16 MHz cr
ystal oscillator
–   Internal 8 MHz factory-trimmed RC
–   Internal 40 kHz RC
–   PLL for CPU clock
–   32 kHz oscillator for RTC with calibration

2.7 - 5.5V
Timers 7 timers
–   Three 16-bit timers, each with up to 4
IC/OC/PWM or pulse counter and
quadrature (incremental) encoder input
–   16-bit, motor control PWM timer with dead-
time generation and emergency stop
–   2 watchdog timers (Independent and
Window)
–   SysTick timer 24-bit downcounter

3
Communications interfaces Up to 9 communication interfaces
–   Up to 2 x I2C interfaces (SMBus/PMBus)
–   Up to 3 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
–   Up to 2 SPIs (18 Mbit/s)
–   CAN interface (2.0B Active)
–   USB 2.0 full-speed interface

Analog to digital converter (ADC) 2 x 12-bit, 1 μs A/D converters (up to 16
channels)

I/Os Up to 80 fast I/O ports
–   26/37/51/80 I/Os, all mappable on 16 external interrupt vectors and almost all 5 V-tolerant



ATmega8 vs STM8


STM8S103F3P6 STM8S105C6T6 8BIT 32KB FLASH ATmega8
Price $0.99/2=$0.5 $2.54/5=$0.51  $0.99/1 $1.47/2=0.78
$3.18/5=$0.63
Core 16 MHz 16MHz
Memories • Program memory: 8 Kbyte Flash;
•Data memory: 640 byte true data EEPROM;
•RAM: 1 Kbyte
•Program memory: up to 32 Kbyte Flash; •Data memory: up to 1 Kbyte true data
EEPROM; 
•RAM: up to 2 Kbyte
8KBytes of Flash program memory
– 512Bytes EEPROM
– 1KByte Internal SRAM
Clock, reset and supply management 2.95 to 5.5 V operating voltage

4 master clock sources
–   Internal, user-trimmable 16 MHz RC
–   Internal low-po
wer 128 kHz RC
•Clock security system with clock monitor

2.7 - 5.5V
Timers •Advanced control timer: 16-bit, 4 CAPCOM
channels, 3 complementary outputs, dead-time
insertion and flexible synchronization
•16-bit general purpose timer, with 3 CAPCOM
channels (IC, OC or PWM)
•8-bit basic timer with 8-bit prescaler

Two 8-bit Timer/Counters with Separate Prescaler, one Compare Mode
– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode
– Real Time Counter with Separate Oscillator
– Three PWM Channels
Communications interfaces •UART with clock output for synchronous
operation, SmartCard, IrDA, LIN master mode
•SPI interface up to 8 Mbit/s
•I2C interface up to 400 kbit/s
Byte-oriented Two-wire Serial Interface
– Programmable Serial USART
– Master/Slave SPI Serial Interface
Analog to digital converter (ADC) 10-bit, ±1 LSB ADC with
up to 5 multiplexed
channels, scan mode and analog watchdog
8-channel ADC in TQFP and QFN/MLF package
• Eight Channels 10-bit Accuracy
– 6-channel ADC in PDIP package
• Six Channels 10-bit Accuracy
I/Os Up to 28 I/Os on a 32-pin package including
21 high sink outputs
23 Programmable I/O Lines

•96-bit unique key for each device