This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
projects:a4sim:troubleshooting [2020/02/26 03:20] dwheele [Solution] |
projects:a4sim:troubleshooting [2020/05/07 05:13] (current) dwheele [Solution] |
||
|---|---|---|---|
| Line 32: | Line 32: | ||
| These resistors are soldered to the Arduino Mega 2560 Channel 46. | These resistors are soldered to the Arduino Mega 2560 Channel 46. | ||
| + | |||
| + | **Additional Solution**: In Arduino code, the I2C handler is looking for a fixed number of bytes on the inbound message. If it doesn' | ||
| + | |||
| + | With code like this: | ||
| + | |||
| + | <code c> | ||
| + | // Read off all of the bytes | ||
| + | for (i = 0; i < numBytes; i++) { | ||
| + | byteBuffer[0] = Wire.read(); | ||
| + | } | ||
| + | </ | ||
| ===== Arduino Mega 2560 Stopped working ===== | ===== Arduino Mega 2560 Stopped working ===== | ||
| Line 43: | Line 54: | ||
| After fixing the breadboard traces, I replaced the Arduino Mega 2560 (Channel 46) and it is working again, now powered by the 4 pin JST, with 12V input. | After fixing the breadboard traces, I replaced the Arduino Mega 2560 (Channel 46) and it is working again, now powered by the 4 pin JST, with 12V input. | ||
| + | ===== Can't upload to Arduino Nano from emakefun.com ===== | ||
| + | |||
| + | Tried to upload in the usual way to Arduino Nano from emakefun.com (very cheap, from Amazon). I kept getting obscure communication errors. | ||
| + | |||
| + | ==== Solution ==== | ||
| + | |||
| + | Resetted Nano, then need to select "old bootloader" | ||
| + | |||
| + | [3/13/2020] | ||
| + | |||
| + | ===== Malloc error for two-OLED Display implementation ===== | ||
| + | |||
| + | Worked on getting two OLED displays to work at the same time connected to an SoftI2CMaster I2C implementation. This was caused because the byte buffer each took about 1K of memory, but there is only 2K of Dynamic RAM. Solved the problem by reusing the buffer between the two displays. | ||
| + | |||
| + | [5/5/2020] | ||