2024-05-03, 09:56 AM
Im just using push buttons and pi gpio pins to control py-pilot and it would be useful to have a LED indicating whether py-pilot is engaged or not. Is there already a facility for this?
Thanks
Thanks
Can I drive an "Engaged" led directly from a pi gpio pin?
|
2024-05-03, 09:56 AM
Im just using push buttons and pi gpio pins to control py-pilot and it would be useful to have a LED indicating whether py-pilot is engaged or not. Is there already a facility for this?
Thanks
Digital pin13 on the arduino is led on when engaged; the pin can drive 20 to 40mA max so can easiliy drive an led with a suitable resistor.
2024-05-03, 08:03 PM
The arduino is physically seperated from the pi and push buttons by about 5M. Ill need to run a 2 core from the arduino to the pi to run a led at the button position. Not really convenient.
You are very right, it would a bit clumsy that way. Too bad that you don't want to invest some time in python, because I do have buttons and an LED attached to my (tinypilot) pizero. You could reuse the custom code with few or no changes.
2024-05-04, 07:04 AM
(2024-05-03, 10:10 PM)ironman Wrote: You are very right, it would a bit clumsy that way. Too bad that you don't want to invest some time in python, because I do have buttons and an LED attached to my (tinypilot) pizero. You could reuse the custom code with few or no changes. Ill give python a go. Ill have a look at the code and annoy you later. Thanks for that. |
« Next Oldest | Next Newest »
|