Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED Matrix HT16K33 + Leonardo Clone Issues #1106

Closed
sidhenn opened this issue Apr 17, 2016 · 11 comments
Closed

LED Matrix HT16K33 + Leonardo Clone Issues #1106

sidhenn opened this issue Apr 17, 2016 · 11 comments

Comments

@sidhenn
Copy link

sidhenn commented Apr 17, 2016

I am having strange errors on a Leo clone + HT16K33 LED 8x8 matrix

The same HT1633 LED 8x8 matrix + J5 code + Uno + StandardFirmata is working.

But HT1633 LED 8x8 matrix + J5 code + Leo clone (ie;adafruit feather) (hooked up SDA/SCK pins 2/3) + StandardFirmata is not working and give the following error:

C:\Users\den2k\OneDrive\Professional\My Projects\Node.js>node ledmatrix.js
1460916747545 Device(s) COM6
1460916747561 Connected COM6
Writing to COM port (GetOverlappedResult): Unknown error code 121
Writing to COM port (GetOverlappedResult): Unknown error code 121
1460916757568 Device or Firmware Error A timeout occurred while connecting to the Board.

Please check that you've properly flashed the board with the correct firmware.
See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting

If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.
events.js:146
throw err;
^

Error: Uncaught, unspecified "error" event. ([object Object])
at Board.emit (events.js:144:17)
at Board.log (C:\Users\den2k\OneDrive\Professional\My Projects\Node.js\node_modules\johnny-five\lib\board.js:630:8)
at Board.(anonymous function) [as error](C:Usersden2kOneDriveProfessionalMy ProjectsNode.jsnode_modulesjohnny-fivelibboard.js:641:14)
at Board. (C:\Users\den2k\OneDrive\Professional\My Projects\Node.js\node_modules\johnny-five\lib\board.js:418:14)
at Timer.listOnTimeout (timers.js:92:15)

Any ideas or direction I an investigate? Thanks for any help.

@rwaldron
Copy link
Owner

This looks like a failure at node-serialport level. Let's ask @reconbot for help on this one

@rwaldron
Copy link
Owner

In the meantime I will order one of these: https://www.adafruit.com/product/2771

@sidhenn
Copy link
Author

sidhenn commented May 1, 2016

Thanks Rick. I had some time to look at this again.

Is this an improvement? I did an update of serialport. Running serialport 2.15.1

Now running on an LEO clone the LED - Matrix HT16K33 EXAMPLE I get this.

C:\Users\den2k\OneDrive\Professional\My Projects\Node.js>node ledmatrix.js
1462138923284 Connected COM9
1462138928329 Repl Initialized

events.js:141
throw er; // Unhandled 'error' event
^

Error: Writing to COM port (GetOverlappedResult): Unknown error code 121
at Error (native)

Running the same example code on my Arduino Uno from the same computer works fine, so I wonder why? Hmmm. Thanks.

@sidhenn
Copy link
Author

sidhenn commented May 2, 2016

I disconnected the radio that was attached to the SDA/SCL lines and the example started to work. The RFM69 radio on the Leo clone (like the Feather but not exactly) is using the SDA/SCL Pin 2 and Pin 3 and it doesn't like sharing on the I2C bus. Not sure but that is what I think is the problem. Perhaps when you get a Feather you can verify it works.

@rwaldron
Copy link
Owner

rwaldron commented May 4, 2016

Does the Feather require a battery? Mine keeps shutting off, even when USB tethered

@sidhenn
Copy link
Author

sidhenn commented May 8, 2016

No battery required. the feather should work when tethered to USB. I'm not using a feather exactly, but a 32u4 based board like it and the board works fine without a battery.

The radio on the I2C pins on my board didn't like sharing so once I disconnected the radio and the LED matrix started to work. The feather should work with the HT16K33 as well, even without the battery.

By the way, J5 is awesome!

@rwaldron
Copy link
Owner

rwaldron commented May 8, 2016

By the way, J5 is awesome

❤️

Can you link me to the exact board you're using? I would love to learn more

@sidhenn
Copy link
Author

sidhenn commented May 10, 2016

It's my own design. I've built it to have a radio option, but its a pretty simple ATMega32u4 based Arduino clone. I like it that with a simple StandardFirmataPlus it works fine with J5. Be happy to send you an early sample. It's got one more iteration to fix the problem I mention here on this thread but otherwise seem to work fine with J5, although I haven't tested everything.

@reconbot
Copy link
Collaborator

This is a known Node serialport issue, we don't have a fix quite yet. serialport/node-serialport#781

@dtex
Copy link
Collaborator

dtex commented Jan 5, 2018

There has been a lot of movement over at node-serialport. J5 now uses the newer version which might have a fix. @den2k can you advise wether it's okay to close this issue or if you are still having problems.

@stale
Copy link

stale bot commented Dec 31, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Dec 31, 2018
@dtex dtex closed this as completed Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants