Skip to main content
Arduino

Timeline for can differential drive work together with ultrasonic sensor?

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Oct 22, 2021 at 7:38 vote accept יחזקאל הירשהורן
Oct 22, 2021 at 7:38 answer added יחזקאל הירשהורן timeline score: 0
Oct 22, 2021 at 7:31 comment added יחזקאל הירשהורן Thanks, chrisl. indeed I am using pins 2 and 3 for rotary encoders, and I see that pin 3 belongs to Timer2 which is used by NewPing for UNO boards. I understand that only pins 2 and 3 are usable for interrupts on UNO, so I guess I cannot use the ping_timer function and also attachIntterup on pin 3 on the same board?
Oct 20, 2021 at 21:13 comment added chrisl The NewPing library uses a hardware timer for doing the background measurement, so does analogWrite. I suspect that there is a conflict for a hardware timer in your code. I currently cannot verify, but you should make sure, that these don't want to use the same timer
Oct 17, 2021 at 14:48 history edited יחזקאל הירשהורן CC BY-SA 4.0
added a link to info of my motor shield.
S Oct 17, 2021 at 14:42 review First questions
Oct 17, 2021 at 15:58
S Oct 17, 2021 at 14:42 history asked יחזקאל הירשהורן CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /