Hello,
I upload the Opencat code to an Arduino Mega board. I'm to fear to do it on my Bittle. :D I first want to understand everything of the OpenCat.ino and OpenCat.h.
I connect the Gyro at SDA and SCL.
The Servo Shield to A4 and A5 and the Servos to the same pins like my Bittle.
The IR to digital Pin 4 and the Buzzer to Pin 5.
There is no Error but the Servos doesn't work and the Buzzer makes did da da did ... :D
Now my Questions:
~~~~~~~~~~~~~
For what is the INTERRUPT PIN 0?
For what is the Sound A2?
Should I use an active or passive buzzer?
To witch pins must i connect the servo shield or is it ok to use A4 and A5?
Sorry for wrong category use
Buzzer Test is ok!
Servo Test Is nice ok!
IR Test is ok!
MPU Test is ok!
Leaning by doing 🤔
Everything is ok. I use the WriteInstinct.ino and now everything is allright! 🤗
Hello,
thank You for answer. I use 20, 21 for the Servo Shield now.
An Interrupt Pin 2 as like in the PDF but the Servos do nothing. Is this normal?
For the Gyro I use the 3,3V Pin and SDA and SCL is at the Servo Shield. Int is 2.
A0 is with the resistors. 4 pieces 1M (2 between).
I think I will use the ModuleTests. Perhaps it helps me to understand Your code.
And I don't understand in OpenCat.h is INTERRUPT 0 and SOUND A2 defined.
//board configuration #define INTERRUPT 0 #define IR_RECEIVER 4 // Signal Pin of IR receiver to Arduino Digital Pin 4 #define BUZZER 5 #define GYRO #define ULTRA_SOUND #define SOUND A2 #define LIGHT A3 #define READING_COUNT 100
In the Serial Monitor comes:
* Start *
dy!
Revision @ user[16][6] = A5
Resetting memory bank selection to 0...
-1 -1 -1 -1
Enable DMP
Enable interrupt
DMP ready!
* Start *
Initialize I2C
Connect MPU6050
Test connection
MPU successful
Initialize DMP
Checking hardware revision...
Revision @ user[16][6] = A5
Resetting memory bank selection to 0...
-1 -1 -1 -1
Enable DMP
Enable interrupt
DMP ready!
* Assigning 1 skill addresses...
For what is the INTERRUPT PIN 0?
It's pin2. Reference
For what is the Sound A2?
In OpenCat.h:
//board configuration #define INTERRUPT 0 #define IR_RECEIVER 4 // Signal Pin of IR receiver to Arduino Digital Pin 4 #define BUZZER 5
Should I use an active or passive buzzer?
We use the passive buzzer
To which pins must I connect the servo shield or is it ok to use A4 and A5?
It seems that mega uses 20, 21. Reference
I find this as answer for my Question 3 and 4. The Gyro must connect to the Servo Shield of course. and the buzzer is an active one. ;)
I connect now everything like the PDF Example witout the Raspery. but the Servos doesn't work. The serial Monitor shows the GYRO ready.
And the IR signal is coming in. But nothing happens and the Buzzer do: did, did, did, did ...