When run open_cat on the serial monitor I get error below
* Start *
Initialize I2C
Connect ing hardware revision...
Revision @ user[16][6] = 0
Resetting memory bank selection to 0...
ode
1)
Initialize DMP
Checking hardware revision...
Revision @ user[16][6] = 0
Resetting memory bank selection to 0...
* Start *
Initialize I2C
Connect MPU6050
Test connection
MPU failed
Initialize DMP
Checking hardware revision...
Revision @ user[16][6] = 0
Resetting memory bank selection to 0...
4096 0 0 0
DMP failed (code
1)
Initialize DMP
Checking hardware revision...
Revision @ user[16][6] = 0
Resetting memory bank selection to 0...
4096 0 0 0
DMP failed (code
1)
Arduino!!!!
Reinstalled Android now all ok.
I am going to remove Arduino from the pc and reinstall.
Will let you know if that solves the
On the original PC I have uninstalled the usb device and renistalled it but it still shows a mega!
meant to say on another PC
Arduino is not fresh, the last board i used was a mega and I cannot see how to get the PC to change the port to see a uno board.
I have tried installing Arduino on and PC but I cannot get the drivers for the usb port in install.
I am stuck.
How did you discover the sketch could be uploaded by setting Mega? Did you use it before? Was your Arduino IDE fresh installed? I'm not sure why it doesn't work on your computer.
will not upload if board set to uno only mega
What is programmer supposed to be set to?
Tried it as uno and sketch will not upload (the com port still shows mega 2560)
The sketch uploads if board set to mega
Did you set the Board as Arduino Uno?
Yes it looks exactly the same and set to Arduino.
Just one thing when I set the board type in tools the com port shows meg 256 not Uno
How does this switch look like?
it is arduino
I2C Scanner
Scanning...
No I2C devices found
Is the i2c switch dialed at Arduino rather than Pi? What about the output from the testI2Cdevice.ino in ModuleTest folder?
reran writeinstinct then tried testMPU - got this error
InitializinInitializing I2C devices...
Testing device connections...
MPU6050 connection failed
Send any character to begin DMP programming and demo:
Initializing DMP...
Checking hardware revision...
Revision @ user[16][6] = 0
Resetting memory bank selection to 0...
DMP Initialization failed (code 1
Calibrate MPU? (Y/n)
Gotcha!
* MPU6050 Calibration Routine
MPU6050 connection failed (sometimes it shows "failed" but is ok to bypass.
Reading sensors for first time...
Your MPU6050 should be placed in horizontal position, with package letters facing up.
Don't touch it until all six numbers appear. You should hear a long beep followed by a Meooow!
12.456
0 0 4096 0 0 0
FINISHED!
Data is printed as: acelX acelY acelZ giroX giroY giroZ
Readings should be close to: 0 0 16384 0 0 0
Sensor readings with offsets: 0, 0, 0, 0, 0, 0,
Your calibration offsets: 0, 0, 4096, 0, 0, 0,
The offsets are saved and automatically sent to mpu.setXAccelOffset(yourOffset)
Does it enter the MPU calibration routine and print 1~6 numbers?
it did write to the i2c eprom in writeinstinct this time
I have changed it and rerun writeinstinct and opencat and get same opencat error
You need to set the serial monitor as "no line ending", mentioned in https://bittle.petoi.com/4-configuration#4-2-7-download-the-opencat-package
Results from writeinstinct -
* Change "#define NyBoard_V*_*" in OpenCat.h according to your NyBoard version!
* OpenCat Writing Constants to EEPROM...
Reset joint calibration? (Y/n)
* Update Instincts? (Y/n)
Won't overwrite Instincts on external I2C EEPROM!
Saving skill info...
I nstinct: bdFI
I nstinct: bkI
I nstinct: bkLI
I nstinct: bkRI
I nstinct: crFI
I nstinct: crLI
I nstinct: crRI
I nstinct: rnFI
I nstinct: rnLI
I nstinct: rnRI
I nstinct: trFI
I nstinct: trLI
I nstinct: trRI
I nstinct: vtI
I nstinct: wkFI
I nstinct: wkLI
I nstinct: wkRI
I nstinct: balanceI
I nstinct: buttUpI
I nstinct: calibI
I nstinct: droppedI
I nstinct: liftedI
I nstinct: restI
I nstinct: sitI
I nstinct: strI
N ewbility: zeroN
N ewbility: bfN
I nstinct: ckI
I nstinct: hiI
I nstinct: peeI
I nstinct: puI
I nstinct: rcI
I nstinct: stpI
***
On-chip EEPROM has 1024 bytes.
Instinctive dictionary used 442 bytes (43.16 %)!
***
Finished!
* Assigning 33 skill addresses...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Finished!
Calibrate MPU? (Y/n)
Gotcha!
* MPU6050 Calibration Routine
MPU6050 connection failed (sometimes it shows "failed" but is ok to bypass.
Reading sensors for first time...
Your MPU6050 should be placed in horizontal position, with package letters facing up.
Don't touch it until all six numbers appear. You should hear a long beep followed by a Meooow!
12.456
0 0 4096 0 0 0
FINISHED!
Data is printed as: acelX acelY acelZ giroX giroY giroZ
Readings should be close to: 0 0 16384 0 0 0
Sensor readings with offsets: 0, 0, 0, 0, 0, 0,
Your calibration offsets: 0, 0, 4096, 0, 0, 0,
The offsets are saved and automatically sent to mpu.setXAccelOffset(yourOffset)
I have a PC running windows 10 and yes the program runs with error and updates the MPU settings, or so it says it has.
The error message is incomplete. What's your computer system and can the program be uploaded even with the warning messages?
Error in compiling writeinstinct, but it loaded and seem to run correctly.
I then ran opencat and got same error as before.
Any ideas please.
Barry
In file included from sketch\OpenCat.h:85:0,
from C:\Users\bjhig\Documents\Arduino\OpenCat\WriteInstinct\WriteInstinct.ino:31:
C:\Users\bjhig\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\libraries\Wire\src/Wire.h: In member function 'void Motion::loadDataFromI2cEeprom(unsigned int&)':
C:\Users\bjhig\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\libraries\Wire\src/Wire.h:64:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^~~~~~~~~~~
C:\Users\bjhig\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\libraries\Wire\src/Wire.h:61:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);
^~~~~~~~~~~
ok will do
Please check the slide switch on the NyBoard. It should be dialed at Arduino rather than Pi. Then you need to re-upload WriteInstinct.ino, save the constants, and finally re-upload OpenCat.ino.