Christian67
New member
Hi to everyone!
I am doing electronics only on a hobby level and especially that analog part (do I need a resistor or not, which value, etc.) is often a headache for me...
I have searched this forum and also the web on this topic, but unfortunately I haven't found a 100% answer that gave me enough confidence to test it.
The whole project is a bit complex as it is a management system for my backyard observatory (Astronomy is my main hobby), including power management, roof control (open/close), weather monitoring, web interface and heat/cool of electronics and the observatory.
I had a prototype running a while based on two Arduinos (Mega and Uno), but this had several problems. Now I want to transfer it to a Teensy 3.5 and already made some progress. But for the SSR's I am completely lost, as my SSR's say they have a input range of 3V to 32V, with a 20mA LED.
On the Arduino Uno the following circuit worked fine (don't ask me why there is a resistor - found this circuit on the web and it works ):
With this circuit my code was very simple:
In the setup() routine a pinMode(1, OUTPUT); and later to switch the SSR on or off a digitalWrite(1, HIGH); or a digitalWrite(1, LOW);
Due to the 20mA LED I am pretty sure I can't use this circuit with the Teensy 3.5. Now I have some optional circuits and have no idea which one is the correct on:
What is the right one? Do I need some more resistors?
And will the code be the same or do I need to swap HIGH/LOW?
Any help is highly appreciated!
Best regards,
Christian
I am doing electronics only on a hobby level and especially that analog part (do I need a resistor or not, which value, etc.) is often a headache for me...
I have searched this forum and also the web on this topic, but unfortunately I haven't found a 100% answer that gave me enough confidence to test it.
The whole project is a bit complex as it is a management system for my backyard observatory (Astronomy is my main hobby), including power management, roof control (open/close), weather monitoring, web interface and heat/cool of electronics and the observatory.
I had a prototype running a while based on two Arduinos (Mega and Uno), but this had several problems. Now I want to transfer it to a Teensy 3.5 and already made some progress. But for the SSR's I am completely lost, as my SSR's say they have a input range of 3V to 32V, with a 20mA LED.
On the Arduino Uno the following circuit worked fine (don't ask me why there is a resistor - found this circuit on the web and it works ):
With this circuit my code was very simple:
In the setup() routine a pinMode(1, OUTPUT); and later to switch the SSR on or off a digitalWrite(1, HIGH); or a digitalWrite(1, LOW);
Due to the 20mA LED I am pretty sure I can't use this circuit with the Teensy 3.5. Now I have some optional circuits and have no idea which one is the correct on:
What is the right one? Do I need some more resistors?
And will the code be the same or do I need to swap HIGH/LOW?
Any help is highly appreciated!
Best regards,
Christian