If I use main_supply_emonlib_under_overvoltage_ver3.ino sketch after module is powered, on display I see the voltage on main power supply:
and after I push MENU/OK button, on display is undervoltage thereshold, who cand change with + & - buttons:
After I push MENU button, value is stored in EEPROM memory, on display is overvoltage thereshold, who can be change by + & - buttons:
after push again MENU button, value is stored in EEPROM memory, on display is delay-off tine in second for reconnect coil relay after voltage inoutside range:
In under & overvoltage relay with Arduino (2) movie you cand see the cases and how you cand cheange value for undervoltage, overvoltage and delay-off time:
31.07.2020
I added a sketch to use LCD1602 alphanumerica display on i2c connexion instead existing display (with MAX7219 and 7-segment led display). Sketch is main_supply_emonlib_under_overvoltage_ver4.ino !
02.08.2020
I added a new sketch with best implement of delay-on to connect the relay... see main_supply_emonlib_under_overvoltage_ver4a.ino
Hello sir
ReplyDeleteWhat to change when using led matrix 7219
Because I cannot find 7 segment 7219
is too complicated... is more easy with alphanumwrical display (LCD1602)
Deletewith LCD1602 I can change the sketch without rebuild the project...
DeleteOk can you send me the sketch then if you add waiting when power off then suddenly on
ReplyDeleteWith my pleasure
I'm very busy.. I'll try to change the sketch this weekend...
DeleteOk
ReplyDeleteTake your time
I added sketch for LCd1602 on i2c connexion: https://github.com/tehniq3/main-supply-voltmeter2/blob/master/main_supply_emonlib_under_overvoltage_ver4.ino
DeleteBRIGHT & HELPFUL
ReplyDeleteplease, send me few photos.with you device...
Delete(lcd wasnot declared in this scope )
ReplyDeletecannot save sketch
you must use library named in sketch... is link to download.. please check
DeleteI want to read the sketch... I changed few lines.. pmease read and unerstand what I made.. not send me replay with "not work"
DeleteSorry sir
ReplyDeletelibrary for LCD1602 on i2c is at https://github.com/tehniq3/used_library: https://github.com/tehniq3/used_library/tree/master/LiquidCrystal_I2C
ReplyDeleteI added a new sketch with best solution for delay-on for relay if voltage is ok: https://github.com/tehniq3/main-supply-voltmeter2/blob/master/main_supply_emonlib_under_overvoltage_ver4a.ino
ReplyDeleteplease test and send me a feedback...