Another simple (No SMT) relay actuator
-
Hello,
nice design with some care for safety !
If possible, I would suggest to connect A4/A5 to the connector, so it would be possible to use (for example) an i2c touchpad, to command the 3 relays and more, for example mpr121 can manage a mix of touchpads and leds. In case of managing leds, of course a Vcc connector would be necessary too as the last input pins would not provide enough current.
Analog pins A0-A5 can be used as digital pins if needed so it could still work as you designed it at the moment with physical switches.On thing that is annoying me also with some designs, is that when you want to use in ceiling to connect directly to ligh bulbs, you need to use connectors/wago to "duplicate" neutral because the board only provides live. If possible you should move J1 to the right, and put holes to add extra 2x connector on the left if people want to have neutral without external connectors, it will give a much cleaner result when connected instead of a mess of wires. I think it's possible to do it if you move the varistor to the left, and change orientation of F2.
-
Thanks, should be under 10USD in parts.
BTW, same design but for roller shutter is on the way -
Hi, dpressle. Thanks for your work?
One Question. Can i connect a normal light switch to it? So that i can turn on the lights with the switch and this node?@artipi Sure you can that is the whole point of the D5, D6, D7 connection.
You just need to take the GND and each of these digital inputs and connect them to the switch (NO high voltage in the switch only GND and digital input), each one of then controls one relay.
-
@dpressle said in Another simple (No SMT) relay actuator:
@breimann Thanks, does any one want link to dirtypcbs?
Hi!
Yes, please send links, really good design!
Regards Rickard
-
@MLs Its in the OpenHardware page see the Source Code tab:
OpenHardwareNote its intended to work with "Home Assistant" HA, some depending on your controller some changes might be needed.
-
Feeling a bit confused how do you know that a bootloader uses the internal clock?
Because I used another bootloader after installing your card, I did not get the Atmega circuit to run. But if I used this bootloader, I started the Atmega circuit and everything worked.But what makes the internal clock in used?
I use a UNO when I'm burning bootloader and do not know if you can change fuses and clock option. -
Feeling a bit confused how do you know that a bootloader uses the internal clock?
Because I used another bootloader after installing your card, I did not get the Atmega circuit to run. But if I used this bootloader, I started the Atmega circuit and everything worked.But what makes the internal clock in used?
I use a UNO when I'm burning bootloader and do not know if you can change fuses and clock option.@MLs I think i lost you there, if there is no external osc how would it work? it is clear (at list to me) that its using the internal clock. Maybe you mean the f_cpu parameter? it is in the board text file.
I also use a nano to burn the bootloader, you can set the fuses as you wish in the boards page exactly as the link you gave is describing.
If you dont care of OTA you can use any other bootloader (like optiboot), i did it as well with this board.
I want to help you more but i need more info and pictures of your exact setup and files, can you share it?
Also some times your atmega328p-pu comes with 16Mhz bootloader pre-installed so you do need to set it up with 16Mhz osc for the first 8Mhz bootloader burn, after that you can remove it.
-
@MLs I think i lost you there, if there is no external osc how would it work? it is clear (at list to me) that its using the internal clock. Maybe you mean the f_cpu parameter? it is in the board text file.
I also use a nano to burn the bootloader, you can set the fuses as you wish in the boards page exactly as the link you gave is describing.
If you dont care of OTA you can use any other bootloader (like optiboot), i did it as well with this board.
I want to help you more but i need more info and pictures of your exact setup and files, can you share it?
Also some times your atmega328p-pu comes with 16Mhz bootloader pre-installed so you do need to set it up with 16Mhz osc for the first 8Mhz bootloader burn, after that you can remove it.
@dpressle
Ok first, I have to say that I have no problem getting your project to work. It connects directly to HA. What I get a little confused about is that according to the link I linked to it says.Be sure to select "ATmega328 on a breadboard (8 MHz internal clock)" when burning the bootloader.(If you select the wrong item and configure the microcontroller to use an external clock, it won't work unless you connect one.)
And as I interpret your post, you can take whatever bootloader you want (8 MHz).
And if I understand you right now, all settings iis n the board.txt file?//Mattias
-
@dpressle
Ok first, I have to say that I have no problem getting your project to work. It connects directly to HA. What I get a little confused about is that according to the link I linked to it says.Be sure to select "ATmega328 on a breadboard (8 MHz internal clock)" when burning the bootloader.(If you select the wrong item and configure the microcontroller to use an external clock, it won't work unless you connect one.)
And as I interpret your post, you can take whatever bootloader you want (8 MHz).
And if I understand you right now, all settings iis n the board.txt file?//Mattias
@MLs When i said "what ever bootloader you want" i meant MYS OTA bootloader or optiboot or breadboard bootloader etc.
They all have 8 Mhz version.In any way this is my boards.txt settings if it helps:
MYSBL13.name=ATmega328 8MHz (RC, BOD1V8)MYSBL13.upload.maximum_size=30720
MYSBL13.upload.maximum_data_size=2048
MYSBL13.upload.speed=38400
MYSBL13.upload.tool=arduino:avrdude
MYSBL13.upload.protocol=arduinoMYSBL13.bootloader.low_fuses=0xE2
MYSBL13.bootloader.high_fuses=0xDA
MYSBL13.bootloader.extended_fuses=0xfeMYSBL13.bootloader.file=MYSBootloader/MYSBL13pre_atmega328_8Mhz.hex
MYSBL13.bootloader.unlock_bits=0x3F
MYSBL13.bootloader.lock_bits=0x0F
MYSBL13.bootloader.tool=arduino:avrdudeMYSBL13.build.mcu=atmega328p
MYSBL13.build.f_cpu=8000000L
MYSBL13.build.core=arduino:arduino
MYSBL13.build.variant=arduino:standardThen in the IDE i select:
