You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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