Speed of event_detected()? - Raspberry Pi Forums
hello, trying build animatronic shooting gallery using rpi b+ , arduino mega, having trouble keeping motors in sync sound. using python 2.7, , attempting measure time using time.clock(), seem have slippage of little on half second per second, sends animatronic routines out of sync pretty quickly.
have been told on other boards rpi bad @ time, whereas arduinos handle time accurately. thinking send timed square wave arduino 1 of rpi's pins, , use ticking clock keep in sync.
think 30ms tick work enough speed @ sending position commands motors, need know if event_detected() count every 1 of these ticks reliably. if so, approximately how fast make clock tick should want higher precision?
have been told on other boards rpi bad @ time, whereas arduinos handle time accurately. thinking send timed square wave arduino 1 of rpi's pins, , use ticking clock keep in sync.
think 30ms tick work enough speed @ sending position commands motors, need know if event_detected() count every 1 of these ticks reliably. if so, approximately how fast make clock tick should want higher precision?
raspberrypi
Comments
Post a Comment