Author Topic: Interrupts, PWM and I2C  (Read 2765 times)

Miirek

  • Newbie
  • *
  • Posts: 2
Interrupts, PWM and I2C
« on: April 14, 2015, 03:04:12 pm »
Hi,
on Kickstarter, I've purchased BLE robot car kit. Works perfect. So I decided to enhance it. I've bought optical speed encoders, echolocation sensor for distance measurement and magnetometer/compass. Now I have some problems.
 
- how can I combine I2C communication and Motor shield attached to I2C ports?
- I'm trying to attach speed encoder triggers to pin 9 and 10 and via attachInterrupt call ISR to count ticks but no success

Can someone, please, point me to the right direction, where to look and/or what to read ... ?

arduino sketch is here .. https://github.com/Miirek/BLEBot/blob/master/arduino/bot_2/bot_2.ino

Thanks.
Mirek
« Last Edit: April 14, 2015, 03:15:11 pm by Miirek »