Hey everyone, I'm going to be using an Arduino Uno with an ATMega328P to control a status LED in my GBZ build. Since I already have this, could I use it for a safe shutdown circuit as well? I'm new to Arduino stuff so sorry if this is a dumb question. Thanks!
Edit: I just learned that Helder's AIO board has 4 extra analog inputs in addition to the joystick inputs. Is there any way I could use those for my battery LED and for safe shutdown? Again, sorry if this is obvious.
Using an Arduino for safe shutdown?
- Lphillimore
- Posts: 993
- Joined: Sat Jan 07, 2017 7:03 pm
- Location: Perth, WA
- Has thanked: 796 times
- Been thanked: 527 times
Re: Using an Arduino for safe shutdown?
mintyPi Giveaway [CLOSED]:
http://www.sudomod.com/forum/viewtopic.php?f=38&t=3456
Builds:
GBZ
http://www.sudomod.com/forum/viewtopic.php?f=9&t=2838
mintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3468
Kite SAIO
http://www.sudomod.com/forum/viewtopic.php?f=9&t=3075
Dreamcast VMU
https://sudomod.com/forum/viewtopic.php ... 133#p62133
http://www.sudomod.com/forum/viewtopic.php?f=38&t=3456
Builds:
GBZ
http://www.sudomod.com/forum/viewtopic.php?f=9&t=2838
mintyPi
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3468
Kite SAIO
http://www.sudomod.com/forum/viewtopic.php?f=9&t=3075
Dreamcast VMU
https://sudomod.com/forum/viewtopic.php ... 133#p62133
Re: Using an Arduino for safe shutdown?
Sweet, thanks! Any idea how I would get that to output to an RGB LED instead of an on-screen icon?Lphillimore wrote: ↑Thu Jun 29, 2017 9:13 amSee here for an awesome solution by HoolyHoo
http://www.sudomod.com/forum/viewtopic.php?f=22&t=2970
I've just finished my milk.
Re: Using an Arduino for safe shutdown?
You could have the arduino read the analog input of the battery status and then control the led through another pin. Or you can control the led through a gpio of the pi with the information from the arduino. Either way you need to rewrite the code for both to make it do exactly what you want.muniosi wrote: ↑Thu Jun 29, 2017 1:10 pmSweet, thanks! Any idea how I would get that to output to an RGB LED instead of an on-screen icon?Lphillimore wrote: ↑Thu Jun 29, 2017 9:13 amSee here for an awesome solution by HoolyHoo
http://www.sudomod.com/forum/viewtopic.php?f=22&t=2970
Re: Using an Arduino for safe shutdown?
Thanks for the help guys. This still leaves the question though: is it possible to use an Arduino (or the chip on Helder's board) for a safe shutdown circuit? If so, how would that be done?
I've just finished my milk.
Re: Using an Arduino for safe shutdown?
Not if your thinking of one that shuts down automatically when you flip the switch like Kite has in his SAIO or with Camble's circuit. That requires extra components. You can use the arduino to provide information on battery status so it performs a safe shutdown in software before battery goes dead. That is done in software with the information from the analog pins of the arduino. If you want a hardware safe shutdown, you will need other components to make that happen.
Who is online
Users browsing this forum: No registered users and 1 guest