How to provide power to..... stuffs ? #3707
Replies: 1 comment
-
Posted at 2014-03-13 by DrAzzy The espruino can provide 3.3v, but only at 150ma - so you can't run heavy stuff off that at 3.3. The espruino itself will run at 3.3-15v (it has a regulator built in). VBat will be at the supplied voltage - it's not 5v like it is on USB. It looks like everything there is 3.3 or 5 volts, and the 3.3 stuff has low current requirements, so you can run it off the Espruino's supply (note that for CC3000, you need to use the Vin pin and the +5v - it's peak current is 350ma, which the Espruino's regulator can't handle - but the Adafruit CC3000 board has it's own regulator built in, powered by VIN). Other than large LED strips, you should be able to run all that stuff powering the Esprino off of a USB wall charger. You can also wire it up to a 5v wallwart, or use the +5v and ground from an old computer power supply, or any other source of 5 volts. You can also power it off batteries, though Li ion batteries are 3.7v, and some of your parts need something closer to 5, so you'd need a dc/dc converter to get the 5v (these are readily available for dirt cheap - small, light ones are available as "UBECs" for model airplanes) For high current applications (long LED strips, etc), you should not draw the power off the Espruino's VBat pins - get the power before it goes into the Espruino. Although the Nokia 5110 screen says it will take 3-5v, on 5v, even the pixels that were supposed to be off were partially darkened - it was hard to read. At 3.3v (running off Espruino's 3.3v), it looked much better. Posted at 2014-03-13 by ChrisB Thank you a lot for your response. So ok.... I can use a 220v -> 5v to power Espruino and almost all things. In case of high power requirement (LED strip) use another converter and not use Espruino (which seems fair :) ) If I provide 5v to be safe and almost all devices would be able to use it via Vbat.... and for the screen having to use the 3.3v pin. But more generally, what would happend if one of the device would require, let say, 12v or 24v ?
Do you know any board (arduino, spark, etc) that could convert 220-240v ? Posted at 2014-03-14 by mikewop I would not mess with 220V in the same enclosure as your device(s) and rather use a pre-made power supply. Modern power supplies use optical isolation between high and low-voltage sides, sufficient gaps between high and low voltage and thermal protection. Posted at 2014-03-14 by ltj I second @drazzy, though I would not recommend an old computer PSU (ATX). The low voltage supply, 5V, is not stable when no current is drawn from the 12V output. For stand-alone operation using mains, a phone charger would be the best option - it's 5V, commonly ~1A these days and compact/efficient due to a switching topology. The Espruino power setup is also documented here. @chrisb, using the bat_in or usb_vbus, vbat will be protected by a 1A fuse so no matter the input voltage you will be allowed to draw more than <1A on vbat. If you choose to power the Espruino directly on vbat be warned that you do not get reverse polarity protection nor a fuse to protect you peripherals and the board. You can still switch high currents safely with the Espruino using mosfets or relays though. If you have peripherals connected that runs on higher voltages, yes, then you would need more than one power supply. Alternatively you can use one mains PSU that delivers 24V DC and then use voltage regulators to give you 12V and 5V as well from the same source. No matter what, all your devices must share a common ground to function properly. Posted at 2014-03-14 by DrAzzy Hm, I didn't know that about computer power supplies. Is that universal? I've used them as power supplies, and I had no problems with stability of the +5v - but this may vary by model. Posted at 2014-03-15 by ltj @drazzy, if no load is on the 12V output you can see some nasty spikes on the 5V supply. I have observed this behavior myself, but others have also reported this like Paul Stoffregen at PJRC. It might be universal in the sense that the PSU design is pretty standard - they must provide the bulk of the power at 12V. However I have not seen it go past 9-10V so if your regulator/device can cope with this, you might never notice :) Posted at 2014-03-15 by ChrisB Thanks all for sharing information. In the meantime I found this article from Gordon about powering LED strip with MOSFET. Sorry to bother you with potentially stupid question. Posted at 2014-03-15 by ltj Power to the rgb led comes from another power source not in the picture (could still be sitting in the breadboard power strip with the black wire). In this case, with just one rgb led, vbat could be used as well. The main point is you don't source power from the GPIO pins. Just to be clear: led power goes to the common-anode terminal (black wire), the cathode of the r,g and b leds (r/g/b wires) is connected to the drain of each mosfet. All mosfet sources are connected to ground. The espruino drives the mosfet gates. I can recommend the many tutorials on the same topic for Arduino. The exact same principles apply. Posted at 2014-03-16 by ChrisB Thanks ltj Posted at 2014-03-16 by ltj Both supplies, USB + led, has it's own ground. These must be tied together for the circuit to function. The pin strip is connected to the led supply ground, so the yellow wire simply connects the ground of the Espruino to the ground of the led supply.
...and don't hesitate to keep asking questions here :) Posted at 2014-03-17 by @gfwilliams Thanks for your help everyone... That tutorial is one that Christian contributed... Come to think of it, it could probably do with a circuit diagram - as could a lot of them :) It may not help in this case, but there's a bit of information on powering Espruino here: http://www.espruino.com/EspruinoBoard Posted at 2014-03-17 by Sacha Hi Gordon, Thanks for the link http://espruino.com/EspruinoBoard . Where is this exelent page linkt to ? When i click on "Refenrence" -> "Espruino Board" i get this page: http://www.espruino.com/ReferenceESPRUINOBOARD Thanks Sacha Posted at 2014-03-17 by @gfwilliams It's linked from: http://www.espruino.com/Espruino+Kits and the search link - but yes, it's hard to get to. Where would you have looked for it, and I'll try and add a link? Posted at 2014-03-17 by Sacha Hi Gordon, I expected it, when i click on "References" in the main menu left. Maybe a merge if the following two pages would be great: http://espruino.com/ReferenceESPRUINOBOARD Best regards Sacha |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-13 by ChrisB
First, as a background, I'm a .Net developer with limited or no electrical knowledges linked to microcontroller usage.
Until now I've used Espruino board with USB to my computer, with limited devices connected on it.
My question is : how and with what do we have to power our "stuff" ?
I mean that the goal would be to have an autonomous board.
And what if we have a 220-240v near the location of the board ?
Additionally, what about all the stuff (LEDs, devices, etc) that require different voltage or power ? Espruino has 3.3V output, right ?
Example (I will detailed everything in the "Project" thread soon) :
(But what about 5m LED strip that would require lot more power, for example)
So, in general, how do we power stuff with different voltage from 220-240v ?
Is there any small power converter board to use, to keep the footprint as small as possible (compared to the size of Espruino board) that can provide several different output voltage ?
And... in the case described above, can I power all of those ?
Thanks for helping...
Chris
Beta Was this translation helpful? Give feedback.
All reactions