1) I have some buttons that I am using to control my RasPi (in the car playing MP3's) via the GPIO pins, the issue is that I am using momentary switches to achieve this and as a result then 'check' times need to be quick low in order to not 'miss' that the button has been pressed. It was suggested that a 'latch and release' type of circuit would be a good solution to this, however I have absolutely no idea where to even start with this.
What I need assistance with with building a circuit that:
- When a button is pressed 'holds' that the button has been pressed (up to 4 buttons)
- Uses another GPIO output to 'release' the button press for all buttons
2) The second circuit that I need some assistance with is a power circuit, as I am using the RasPi in my car I need some kind of 'trigger' curcuit that is able to (a) turn the RasPi on (apply power) using a battery to supply power (so switching the battery source on) then once the car is turned off flag (via GPIO 3v3) to the RasPi that a shutdown is required so that the system can be gracefully halted (I can handle the software side easily, it is the hardware that I am having issues with)
The basic idea is:
- Car Turns On --> 'Activates' the power line from the Battery to the RasPi (Battery charged from Car Power)
- Car Turns Off --> Power from the battery remains on, GPIO signal sent to RasPi Header, RasPi Halts, 'Deactivates' Battery Power
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-commu...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-h...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > For more options, visithttps://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hacke...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/wSwYjkHF5AUJ.To post to this group, send an email to connected-commu...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-h...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > connected-community-hackerspace+unsubscribe@googlegroups.com.
> > For more options, visithttps://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hackerspace...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hacke...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
> To post to this group, send an email to connected-community-hacke...@googlegroups.com.
> To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
> To post to this group, send an email to connected-community-hacke...@googlegroups.com.
> To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
> > For more options, visithttps://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hackerspace...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsu...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/wSwYjkHF5AUJ.--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hacke...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-commu...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-h...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/_GNGZ73uU9QJ.
> > connected-community-hacke...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > connected-community-hackerspace+unsubscribe@googlegroups.com.
> > For more options, visithttps://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hacke...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/wSwYjkHF5AUJ.--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hacke...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-community-hacke...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-hackerspace+unsubscribe@googlegroups.com.
To post to this group, send an email to connected-commu...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-h...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/hMj4HCfvdaIJ.
To post to this group, send an email to connected-commu...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-h...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/JHzbiX_WAUoJ.
Hi Ken,
Unfortunately that would leave the RasPi in a state of 'have power but not on' and the lack of a power switch on the Pi would mean I would need to build one (which could then be accidentally pressed while driving).
Hi All,
2) The second circuit that I need some assistance with is a power circuit, as I am using the RasPi in my car I need some kind of 'trigger' curcuit that is able to (a) turn the RasPi on (apply power) using a battery to supply power (so switching the battery source on) then once the car is turned off flag (via GPIO 3v3) to the RasPi that a shutdown is required so that the system can be gracefully halted.
Not sure if this helps, but there is normally a permanent 12v and an ignition switched 12v supply the the radio in a car. The RasPi could be permanently on but in a sleep mode (if it has such a thing) and made to wake on the switched 12v signal. That's how the radio retains it's memory when the ignition if off.
Stef
On 06/09/2012 11:31 AM, "kspn" <ksp...@gmail.com> wrote:
Hi David,
I did consider that, but unfortunately as described above (note I have Revision 1 without a reset switch) I would have no way of turning the device back on.
My basic scenario for this is:
1) Turn car on
2) Enable power from a battery pack (Which I have)
3) RasPi turns on
4) RasPi sets a signal to 'high' to keep power form the Battery Pack 'On' (don't know how to do this bit)
5) Car Turns Off
6) RasPi detects that car is no longer sending Power to the battery pack (don't know how to do this bit)
7) RasPi Shuts Down, stopping the 'high' maintenance signal
8) Power from Battery pack is turned off after a small delay (don't know how to do this bit)
9) Entire setup now has no power, GoTo 1
This scenario is designed in such a way that the Car is turning the RasPi on/off depending on if it is running with the limitation of the on/off being Power On/Power Off
I will probably come along to the CCHS meeting on Saturday morning, which may help with some of the explanation of what I am trying to achieve with this.
As far as the switches go, I am looking for Simple, the simpler the better, at the moment my solution is 'too' simple, and I am having to do some high speed loops to read the GPIO pins and get the status of the buttons (I have 4), which is not ideal.
I am going to investigate the option for setting up a flip-flop so that I only have to check the button whenever I update the screen (once per second) as that seems to be the next simplest solution, it also means that I can use the same code for signal checking and power maintenance for the power issue that I am having.
Thanks
Karel
On Tuesday, September 4, 2012 5:08:44 PM UTC+10, David Lyon wrote:
>
>
>
> On Tue, Sep 4, 2012 at 3:37 PM, kspn <ksp...@gmail.com> wrote:
>>
>> Hi All,
>> 2) The seco...
To view this discussion on the web, visit https://groups.google.com/d/msg/connected-community-hackerspace/-/uL9MbK8dmbQJ.
Hi Stef, David,
I suppose that my issue comes down to a single question that I have not yet spotted an answer to. How do I turn the RasPi back on after shutting it down without unplugging the power. If I can work that out then yes Permanent power becomes viable :)
(As a side note I like the battery because it provides the 5v USB power I need @ 1A)
--
You received this message because you are subscribed to the Google Groups "Connected Community HackerSpace" group.
To post to this group, send an email to connected-commu...@googlegroups.com.
To unsubscribe from this group, send email to connected-community-h...@googlegroups.com.