portable arduino / raspberry pi  with plug and charge power questions  - Page 1
Forum section: electronics / beginners

author: simondid
author_rank: Contributor
timestamp: June 15, 2016, 06:20:38 pm
content: Heyso I want to build a remote control that uses wifi connection to do the controlling and code is no problem but I having a hard time figuring out how to power the portable remote my requirements are as following24+ at a usage off (140ma)https://learn.adafruit.com/low-power-wifi-datalogging/no-optimizationshours lifetime ore 240 if an rpi 3A plug for recharging / direct powering while ChargingThe ability to provide 5v ore 3.3v for a rpi ore ArduinoCharge time dos not really matter that muchOverall size off charging circuit and battery matter a lotThe ability to use a normal phone charger like an iphone charging Brik with a usb kabelTherefore, this brings up a few questions what kind of battery will be good for this kind of project and size off battery is required (240ma*24houres=5760mah is this calculation off battery capacity right) ?Anyone know off a circuit preferable a premade one that allows for this kind of setup?Thanks in advance

author: jewelie
author_rank: Regular Contributor
timestamp: June 16, 2016, 03:51:53 am
content: According tohttps://www.arduino.cc/en/Main/ArduinoBoardNanothe Nano can be powered via the 5V pin with a regulated supply. How about running it from one of those mobile USB PowerBanks? 5V, space efficient, lots of mAh? You could even power it directly into the USB mini B socket?I assume that you know that Arduinos have built in voltage regulators anyway if you power it from the Vin connector with at least 6.2V, so you don't need an exact 5V - if you can find a 6.2V+ portable power source, even unregulated, you're sorted, they'll make 5V and 3.3V from that for you.Arduinos are very gentle on power requirements, Pis eat it up for dinner! The Arduino Nano clone (eBay HK £1.50 / US$2.25) I have seemed to work really well at lower voltages too (I didn't mean to do this, but I didn't realise the Arduino was running on 4V when it was supposed to be much above that.) I wouldn't think of trying to get a Pi running via battery unless you were a dedicated masochist. :-p

author: Ian.M
author_rank: Super Contributor
timestamp: June 16, 2016, 05:10:05 am
content: You'd be better off using a separate battery powered IR remote and a mains powered IR to WiFi bridge. The remote could be off-the-shelf, or a PIC or AVR with a key matrix and an IR LED running off three AAA batteries. Its battery life could be months or even years depending on how good your power management code is, and how much its used, so don't bother making it rechargeable.The IR to WiFi bridge could be a TSOP38238 IR receiver connected to a Pi running LIRC with some scripts to send <whatever> command over the TCP/IP network in response to each button press on the remote.

author: gblades
author_rank: Contributor
timestamp: June 16, 2016, 01:08:42 pm
content: Another idea... How about using an ESP8266?It has built in wifi and SCL/SDA etc... and runs off 3.3v (max 3.6V input). So you can run it off a small lipo battery together with a small power supply perhaps something AP2112-3.3 based. For charging you can use a TP4096.The ESP8266 is very low power (http://bbs.espressif.com/viewtopic.php?t=133) so even in modem sleep you should be able to get about 4 days from a mobile phone battery.

author: simondid
author_rank: Contributor
timestamp: June 16, 2016, 04:57:37 pm
content: after a bit more research i have found that the esp8266 esp 12-ehttp://www.esp8266.com/wiki/doku.php?id=esp8266-module-familyproperly will allow me to do what i need and will be quit energy efficient but I’m still abit confused on how to program the chip and the options there so any suggestions on tutorials ?as for the battery and charge circuit I found thishttp://www.ebay.com/itm/291644054296witch shut be able to charge and provide power at the same time and Charing with a micro usb witch is perfect only down side as fare as I understand is that I can’t use multiple cells

author: gblades
author_rank: Contributor
timestamp: June 16, 2016, 05:06:02 pm
content: https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/installing-the-esp8266-arduino-addonis a good guide on using the Arduino IDE to program the device.Note the ESP-12 has 2mm spacing on the connectors so you might want to get a breakout pcb for it. I also have one of the 'nodemcu' versions which has the usb serial interface all on the single board so is quite nice for quick tests. You will also need a USB to serial adapter and if you look around on ebay you will find some which are 3V/5V switchable.

author: simondid
author_rank: Contributor
timestamp: June 19, 2016, 12:22:03 pm
content: thanks mani just ordere alle the stuff nede from china so properly gonna be like 30 days before i can get any don