Author Topic: portable arduino / raspberry pi with plug and charge power questions  (Read 2098 times)

0 Members and 1 Guest are viewing this topic.

Offline simondidTopic starter

  • Contributor
  • Posts: 20
  • Country: dk
Hey

so 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 following

24+ at a usage off (140ma) https://learn.adafruit.com/low-power-wifi-datalogging/no-optimizations  hours lifetime ore 240 if an rpi 3
A plug for recharging / direct powering while Charging
The ability to provide 5v ore 3.3v for a rpi ore Arduino
Charge time dos not really matter that much
Overall size off charging circuit and battery matter a lot
The ability to use a normal phone charger like an iphone charging Brik with a usb kabel 

Therefore, 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

 

Offline jewelie

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
  • Everyone's gotta start somewhere
    • Personal website, of sorts, sometimes with a Pi-driven bird-feeder webcam (currently down but will be putting it up again in the near future with IR capability.)

According to https://www.arduino.cc/en/Main/ArduinoBoardNano the 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

Anxious newbie to EEVblog.  Resuming an interest in basic electronics after a close shave with a joint EE/Computing degree decades ago
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
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.
« Last Edit: June 16, 2016, 05:12:55 am by Ian.M »
 

Offline gblades

  • Contributor
  • Posts: 45
  • Country: gb
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.
 

Offline simondidTopic starter

  • Contributor
  • Posts: 20
  • Country: dk
after a bit more research i have found that the esp8266 esp 12-e http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family
 properly 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 this http://www.ebay.com/itm/291644054296 witch 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
 

Offline gblades

  • Contributor
  • Posts: 45
  • Country: gb
https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/installing-the-esp8266-arduino-addon is 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.
 

Offline simondidTopic starter

  • Contributor
  • Posts: 20
  • Country: dk
thanks man :P
i just ordere alle the stuff nede from china so properly gonna be like 30 days before i can get any don :(
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf