Battery for LP

Feel free to talk about anything and everything
Forum rules

- Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.

- Members should post in a way which is consistent with "normal writing". That is users should not post excessive numbers of emoticons, large, small or coloured text, etc. Similarly users should not SHOUT or use excessive punctuation (e.g. ! and ?) in topic titles or posts.

- Members should use an appropriate, descriptive subject when posting a new topic. Examples of bad subjects include; "Help me!", "I'm stuck!", "I've got an error!", etc. Examples of good subjects include; "Getting an TABLE FULL error upon login", "Cannot restore a backup".

- Members are asked to post in English only so that posts can be well received and properly monitored.

- Spam is not tolerated here under any circumstance. This includes offering hosting services (charged and free), installation services, solicitation etc. Recruiting members for your own projects (moderators, designers, professional MOD work, etc.) is not permitted and is also considered spam. Users posting spam will be warned and their post removed.

- Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning. Vulgar language and inappropriate material is not allowed and will be removed. We try to maintain a family friendly atmosphere whenever it is possible within the main subject matter of this community. Please keep this in mind when participating.

- Each user is allowed to create one account. If you would like to change your username, please contact us and, most likely, we can do it for you while you can keep all of your profile data, posts, and other content.

- If a user violates our guidelines and shows a disregard for them, our staff and our community, they run the risk of losing their account. We reserve the right to deactivate any account and to edit or remove any content without warning. These guidelines are subject to change at any time without notice.

Thank you for visiting LattePanda.com!
User avatar
LazyBunny
Posts: 65
Joined: Mon Oct 24, 2016 10:38 pm
Location: USA
Contact:

Fri Oct 28, 2016 8:40 pm

Alrighty, since i did robotics, i can tell you now.. you may need to use something like a 5 amp BEC or uBEC (often used for RC airplanes and helicopters) as your switching regulator.
those motors and servos under load will probably pull quite a bit of amperage. Once you know how much your DC motors will use, you should probably use a nice motor controller that has it's own power regulation systems.
Servos will need to use your regulator's power.

still don't know what you're making, but it sounds like a wheeled/tracked robot.
My Gameboy: http://imgur.com/a/lhY1x
My SBC Joystick: http://imgur.com/a/vtc5C
My Rockin' Dreamcast: http://imgur.com/a/kI50p
I'm Kiera, the Laziest Bunny in all of Bunny Town.

User avatar
LattePanda
Site Admin
Posts: 2466
Joined: Wed Jan 20, 2016 9:09 am

Wed Mar 29, 2017 11:00 am

we will be releasing a shield in the coming months to help with this
Enjoy Tinkering with LattePanda ! :lol:

User avatar
untitled86
Posts: 24
Joined: Thu May 04, 2017 4:30 am

Tue May 16, 2017 8:27 pm

For my project I needed to power the Panda, the LCD and a few USB devices. I got the job done using a switching regulator board (~$2 less in real quantity) and three 18650 batteries (~$2 each, more for better cells).

Works great. I get about 4hrs of streaming camera video non-stop. My application normally involves using the camera only when a button is held down. When the setup is idle I turn the display off. So in practice this is going to last at least all day.

This is what I bought...
https://www.amazon.com/MP1584EN-Honbay- ... s=mp1584en

Sprinkle this code to toggle the display...

Code: Select all

class Monitor
        {
            [DllImport("user32.dll")]
            public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
            public static void TurnOn()
            {
                SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, -1);
            }

            public static void TurnOff()
            {
                SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
            }

            static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
            const uint WM_SYSCOMMAND = 0x0112;
            const int SC_MONITORPOWER = 0xf170;
        }
[img]
https://1drv.ms/i/s!AsDrOapsdMSUk_Qe9mjL3w0VPe53GA
[/img]

User avatar
ED209
Posts: 222
Joined: Tue Apr 19, 2016 3:31 pm

Thu Jun 08, 2017 9:36 am

untitled86 wrote:For my project I needed to power the Panda, the LCD and a few USB devices. I got the job done using a switching regulator board (~$2 less in real quantity) and three 18650 batteries (~$2 each, more for better cells).

Works great. I get about 4hrs of streaming camera video non-stop. My application normally involves using the camera only when a button is held down. When the setup is idle I turn the display off. So in practice this is going to last at least all day.

This is what I bought...
https://www.amazon.com/MP1584EN-Honbay- ... s=mp1584en

Sprinkle this code to toggle the display...

Code: Select all

class Monitor
        {
            [DllImport("user32.dll")]
            public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
            public static void TurnOn()
            {
                SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, -1);
            }

            public static void TurnOff()
            {
                SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
            }

            static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
            const uint WM_SYSCOMMAND = 0x0112;
            const int SC_MONITORPOWER = 0xf170;
        }
[img]
https://1drv.ms/i/s!AsDrOapsdMSUk_Qe9mjL3w0VPe53GA
[/img]
Can you please post some photos for your connection? I want to build that as you did.

User avatar
untitled86
Posts: 24
Joined: Thu May 04, 2017 4:30 am

Sat Jun 24, 2017 12:56 am

Ok, so this is the board installed.

1) Note how I used two wires for both ground and current. This helps deliver more current. Probably not needed.

2) Note the short wires going from this board to the Panda. This helps mitigate voltage drop due to wires. The wires going to my batteries are long (1ft?) and that doesn't matter. Be sure to adjust the board for 5V at the end of your wires (not just on the bare board). THIS IS CRITICAL

3) I added 3 caps on top of the existing caps on both sides of the board (input and output). This probably isn't required, but I did it to be safe.

https://1drv.ms/i/s!AsDrOapsdMSUk_REqnElY7uaIzjwzA


This is my project so far. I've 3D printed everything except the aluminum square tube. Batteries live in the square tube near the back.

http://1drv.ms/i/s!AsDrOapsdMSUk_RGsHmfUlSPqNN8Eg

http://1drv.ms/i/s!AsDrOapsdMSUk_RFEbzJOowvPGaFcw

Loving the Panda. I might upload pics of the software later. So far everything is going great. Under the white panel are 24 PAR sensors and a STM32F4 running NETMF. At the end is a leveling gimbal and 8MP camera. The NETMF board is connected via USB and emulates a keyboard. Those arrow keys you can see come through as normal Up,Down,Left,Right keystrokes. This also allows the Panda to be woken up from sleep without doing anything custom. That same NETMF board also relays data from those PAR sensors via USB bulk transfers.

User avatar
Tempest8008
Posts: 22
Joined: Tue Sep 12, 2017 3:42 pm

Mon Sep 25, 2017 2:05 pm

I have a need for a setup for the 'Panda with a battery backup.
For the most part it's going to be on external power, but in the event of that external power going out I need to have it survive on battery until it performs a controlled shut down.

Your setup is always on battery power...do those 18650's have the ability to monitor power levels? I see that mentioned in your code.

User avatar
GTC
Posts: 32
Joined: Fri Sep 22, 2017 7:26 pm

Mon Sep 25, 2017 5:41 pm

Tempest8008 wrote:
Mon Sep 25, 2017 2:05 pm
I have a need for a setup for the 'Panda with a battery backup.
For the most part it's going to be on external power, but in the event of that external power going out I need to have it survive on battery until it performs a controlled shut down.
I was in the same boat as you :/ Jumped out of it though!

Have a look at this and let me know if you need one of the same, I'll find a way to get it to you.

http://www.lattepanda.com/forum/viewtop ... =11&t=1608

Post Reply