All about power

the bottom line is:
you can use two pow.sup.s but i suggest you to use a 5V one for the relays and via a low-dropout 3.3v reg the eth. module
and a 9V one for the arduino\lm35
this way you will save the maximum energy possible because the arduino will draw max 50ma and you will use the 9V pow.sup. at 5% of power

2A is well enough but not below

switching regulators? let's not overcomplicate this project, we are already doing this...

and phone chargers are far away from being precise, they are not intended for make a reference voltage for a lm35


image uploader

This is my project btw.
So you have a bit of idea about the scale

And in the meanwhile I am building an Arduino remote control for my audio and tv
with timer and web interface.

But that's a much simpler project

:astonished: ........

i can only say.... good luck :slight_smile:

and good work :grin:

smoke generator? :astonished:
electrical fence? :fearful:
what is this? a disco where you surely have to pay if you want to enter?

screwpilot:
smoke generator? :astonished:
electrical fence? :fearful:
what is this? a disco where you surely have to pay if you want to enter?

Electric opening and closing of the fences is already in place.

The smoke generator is for the alarm. Try to steel something from my house when all you see is smoke.

sorry, i understand the smoke thing but i thought you are electrifying your fence

screwpilot:
sorry, i understand the smoke thing but i thought you are electrifying your fence

No it opens electric. It was already in the house when I bought it. Comes with a RF module. Will be nice job to figure out how that works and connect it to my home system.

For the 7805, find a buck converter. They are a switching converter and don't require a heat sink. Some are pin for pin compatible. Higher price but easier to work with and eliminate much of the waste heat.

There are 3.3V buck converters as well.

As I understand it, you want five volts.

So - you use a proper five volt regulated power supply which will power both the relays and the Arduino without problems.

Such as these:

The regulator in the "breadboard 5V + 3.3V power supply" is no better than that already on the Arduino - not suitable for your purpose. A suitable "LDO" TO-220 regulator on a small heatsink (with 10µF capacitors directly across its input and output terminals) will provide that from your 5V.

i want to make a point about 10uF capacitors on 78(x)XX devices
this summer i've read that this particular capacitance CAN make the regulator oscillate
because the caracteristic inductance of the device's output couples with 10uF caps and it may selfoscillate at around 10kHz or at least be prone to 10kHz bursts when the load varies quickly
i suggest ("i suggest" is becoming my catchphrase :slight_smile: ) to use 1uF or 100uF with the usual 100nF

also...
offline switching power supplies are not raccomended for powering the arduino on the +5V\vcc
because optocouplers are way more susceptible to variations due precision\temperature than the internal reference of the onboard regulator
especially for this application that involves lm35s
lm35 don't adapt their output when there is a variation on the vcc line
this will vary the adc of the arduino and screw up temperatures

you need a hefty 3.3V separate regulator

1.5 A 3.3 V regulator

This is what I was talking about for a 5V buck converter to replace the 7805 They also make a 3.3V

Adafruit 5V buck converter

Simple pin for pin replacement. Less heat as you notice, no heat sinks.

right
and of course it's not offline (with an optocoupler or secondary (bleagh))

Damn I placed my order at the shop and I did not watch the forum for some time.

I ordered and received today:

Artikelnummer Productnaam Aantal Van Voor Totaal
20505 Breadboard voedingsmodule MB102 3,3 / 5V - USB 3 € 3,95 € 11,85
20113 Prototyping board (30x25gaats / 9x7cm) 4 € 0,55 € 2,20
10088 Afstandsstuk zeskant met tapeind 6mm 20 € 0,18 € 3,60
10085 zeskant moer m3 10 € 0,08 € 0,80
10427 L7805CV spanningsregelaar 2 € 0,45 € 0,90
10184 LM317T spanningsregelaar TO-220 3 € 0,32 € 0,96
10181 Diode 1N4007 6 € 0,05 € 0,30
50v040 Condensator 100nF / 100.000pF 50V 6 € 0,12 € 0,72
10422 Condensator 50V 100µF 10 € 0,10 € 1,00
10199 Heatsinkset voor TO-220 component 5 € 0,40 € 2,00
10323 Tantaal condensatoren 10µF 25V 2 € 0,49 € 0,98
20005 Relais board 8-kanaals 5V 1 € 11,35 € 11,35
10116 Schroefterminal 3-voudig recht 5 € 0,55 € 2,75
20308 Sensor - Afstandsmeter Ultrasoon - HC-SR04 1 € 2,75 € 2,75
21501 Jumper kabeltjes 40x 20cm lang 1 € 3,15 € 3,15

And I did order an L7805 and an TO-220 with some diodes and some capacitors (condensatoren in dutch).

But first I can test and continue with my breadboard power supply.
Compared to my drawing I will reduce the number of arduino's it cost me too much power to keep everything running 24/7. So I am going to play with the shift registers to address 16 relays with this arduino.

I built my first Arduino with a nice little website. But that costs way too much memory now. So I reduced the webinterface drastically. It now spits out xml.

I am now working on a HTML5 standalone webpage, which I will pack into an apk for my android devices.
I am a senior software developer, but I hate HTML and css. That''s not the kind of development I usually do during working hours.

However until now I managed to come to this:

Later on I will make a webapp running on a webserver so I can get statistics and run programs and activate timers and so on.
But first "simple" stand alone HTML 5 page. It's so stupid to say that I cannot switch on my light when the webserver has crashed for example.

raschemmel:
1.5 A 3.3 V regulator

Thanks! but I just bought the LM317T spanningsregelaar TO-220.

Is it now okay with my power regulators or do I need to buy some others?
I did buy some capacitors diodes and elko's.
I found a schema somewhere on the internet.

an lm317 needs two resistors to be setted to the right voltage
and it's an old fart of a component :slight_smile:
but can be used

if you want 5V on the 5V output of the breadboard adapter you need to supply it with at least 9V
otherwise it's no point to use a 5V regulator if you already have a GOOD 5V p.s.
you just need a 3.3V reg. for the eth. board
i suppose you have already got there :slight_smile:

relays on the wall sokets? clever!
just consider the max amperage of the relays

screwpilot:
relays on the wall sokets? clever!
just consider the max amperage of the relays

Yes when it's christmas I want to be able to turn the tree on and off too :smiley:
Same I will do in the bathroom so no shaving machine adaptors work uninvited.

The relays on the boards I bought are 230V 10A. 10A is a whole lot as I read it. Now I will not use it for my high-end audio installation. That even has it's own fuse and cable and that's seperated from the rest of the hous' power network.

But I checked for instance the TV and it's much less than 10A and it's an old 42inch plasma.
I can put some fuses in front of the relays, I already have been thinking about that.

Hmmm i put the relay board on a seperate powersupply.

I connected ground to the arduino ground.

Then when i switch it on, the relays go crazy.
when i connect the relays to the arduino it works.
what am i doing wrong?