|
Post by pedrosilva on Jul 3, 2018 17:00:42 GMT
Hi,
When I was testing I2C communication when I was uploading it failed and now the reset led is blinking and I can't upload more.
Greatings.
|
|
|
Post by pedrosilva on Jul 3, 2018 17:09:47 GMT
Hi,
I don't know what happened but I connect the usb to another port and now it is functioning normal again.
Greatings
|
|
|
Post by pedrosilva on Jul 4, 2018 9:26:48 GMT
Hi,
The reset led comeback when testing I2C communication, and now it dont turn off and I can't upload. Any explanation for this and any solution?
Greatings
|
|
|
Post by Admin on Jul 4, 2018 9:30:09 GMT
Are you using the USB to power the ShieldBuddy or the 9V power jack socket? If you have added a shield that draws too much current and you are using USB power, the red LED can come on or flash. Also if you are using USB power and you have a very cheap USB cable, these sometimes cannot pass enough current to run the ShieldBuddy.
|
|
|
Post by pedrosilva on Jul 4, 2018 9:38:07 GMT
I am using USB. I try with a USB hub but nothing change.
|
|
|
Post by pedrosilva on Jul 4, 2018 9:43:36 GMT
Should I try with the 9V? I have to switch jumper for that right?
|
|
|
Post by Admin on Jul 4, 2018 10:03:07 GMT
Yes!
|
|
|
Post by pedrosilva on Jul 4, 2018 11:02:20 GMT
Thank you for the fast help. With 9v it is working normally, but when I connect the power via USB it randomly resets every once in a while.
Greetings.
|
|
|
Post by Admin on Jul 4, 2018 12:05:07 GMT
If this happens it usually means that the USB power supply is not adequate or that the USB cable cannot pass enough current. If you have a shield that is powered off the ShieldBuddy then this can be a problem.
|
|
|
Post by pedrosilva on Jul 4, 2018 15:15:00 GMT
Hi,
When I'm testing the I2C communication with this for
for (address = 1; address <= 127; address++) { // The i2c_scanner uses the return value of // Wire.endTransmission to see if // a device acknowledged the address.
Wire.beginTransmission(address); state = Wire.endTransmission(); SerialASC.print(state); }
the current consumed reaches 1A and I do not know if I should increase the current consumption limit of the power source.
Is such a high current normal by sending I2c commands? What is the maximum current used by shieldbuddy?
Best Regards.
|
|
|
Post by Admin on Jul 4, 2018 15:18:13 GMT
1A seems very high. What are you sending commands to? Is it powered off the ShieldBuddy's 5V?
|
|
|
Post by pedrosilva on Jul 4, 2018 15:23:26 GMT
I have ShieldBuddy with 7V in a a power supply with a current limit of 1A, and the USB connected to load the program when I change it. I do not have any other device connected to shielbuddy.
|
|
|
Post by pedrosilva on Jul 4, 2018 15:25:06 GMT
Whit this program in the manual:
/* Allow use of VT100 escape sequences */ #include "vt100.h" #include <arduino.h>
void Core0IntService(void) { SerialASC.print("\n\rHello from Core "); SerialASC.print(GetCpuCoreID()); }
void Core1IntService(void) { SerialASC.print("\n\rHello from Core "); SerialASC.print(GetCpuCoreID()); }
void Core2IntService(void) { SerialASC.print("\n\rHello from Core "); SerialASC.print(GetCpuCoreID()); }
void setup() { // put your setup code here, to run once:
SerialASC.begin(9600);
CreateCore0Interrupt(Core0IntService);
CreateCore1Interrupt(Core1IntService);
CreateCore2Interrupt(Core2IntService); }
void loop() { /* // put your main code here, to run repeatedly:
InterruptCore0(); delay(500);
InterruptCore1(); delay(500);
InterruptCore2(); delay(500); */ }
void setup1() {
}
void loop1() {
}
void setup2() {
}
void loop2() {
}
The consuption is 0.5 A.
|
|
|
Post by pedrosilva on Jul 5, 2018 8:37:34 GMT
Now if I power with the USB reset light is ON and if I power with the 7V power jack socket the ShieldBuddy don't start and consume 1A.
|
|
|
Post by Admin on Jul 5, 2018 9:02:36 GMT
Using the external 7V power, does the red LED illuminate?
|
|