Replies: 1 comment
-
|
Hello. I am facing a similar issue with Bonsai and Firmata correctly identifying the connected board as Teensy 4.1 but no output stream from the AnalogInput nodes. Did you find a fix for this problem? It would be really helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using a very simple sketch and StandardFirmata loaded onto a Teensy 4.1, I am able to record from analog channels A0 and A1 (pins 14, 15) without issue. However, I am completely unable to record from any other analog pins on the Teensy 4.1 above that. I have #define TEENSY41 in both StandardFirmata.ino and in Boards.h. I originally thought that there was a misconfigure between the default pinout and what Bonsai/Firmata were recognizing, but the default pinout should be an Arduino Uno and pins 14-19 are, to my knowledge, Analog. Running a few simple Serial Monitor outputs added to StandardFirmata, I am pretty sure that pin 16 is being read as analog and that the board is being read identified correctly as a Teensy 4.1. However, when closing arduino's IDE and trying to record from that analog pin in Bonsai, there's simply no output on a rolling graph.
Perhaps equally as strange, if I set the AnalogInput source to something below 14 (such as pin 2) it does record a signal (noise) but these aren't actually analog channels on the physical Teensy, so if I switch my input signal (a rotary encoder in this case) to that pin, the signal doesn't change as it does on pins 14 or 15 (A0/A1).
If anyone knows the solution to what I am doing wrong, I would be incredibly grateful. Otherwise I am seemingly stuck to only 2 analog inputs on this device. Otherwise, is anyone able to record an analog signal from pin 16 on a Teensy 4.1? I tried 3 different Teensy and they all give the same behavior, but I am running the same Firmata/Bonsai code on each. For example, AnalogInput (COM#, 16) -> RollingGraph. I thought perhaps the CreateArduino block would help, but no luck. I tried several baud rates as well, 9600, 57600, so forth. My only changes to StandardFirmata.ino and Boards.h were #define TEENSY41 at the very top, and those were added because if you compile/upload the original sketch to the Teensy it gives a warning that it incorrectly assumes its a TEENSY40.
Beta Was this translation helpful? Give feedback.
All reactions