Hey folks,
I just got my Teensy 3.6, and to get myself familiar with it, I've been testing some demo Arduino code and seeing how it compares.
I've set up a simple circuit to read a potentiometer and output the value to the serial monitor. I've tried connecting the middle pin on the Pot to the pin 14 or (I believe Analog 0)... and doing an analogRead(0). But I get nothing but seemingly random values.. adjusting the pot has no effect.
It then occurred to me that on the Arduino, I normally connect the POT to 5v power out of the Arduino. Of course, I cant get 5v out of the Teensy, only 3.3v. Could this be why the Teensy is not reporting the POT values? If I were to run 5v to the Pot externally, would I be risking sending 5v to the analog pin on the Teensy? The Guide says to not run anything higher than 3.3v to any Teensy 3.6 pin.
Whats the workaround on this? The tutorials on the PJRC site seem geared to earlier Teensies...
Sorry if its a newbie question, just getting started on Arduino, and Teensy is newer still...
Thanks
I just got my Teensy 3.6, and to get myself familiar with it, I've been testing some demo Arduino code and seeing how it compares.
I've set up a simple circuit to read a potentiometer and output the value to the serial monitor. I've tried connecting the middle pin on the Pot to the pin 14 or (I believe Analog 0)... and doing an analogRead(0). But I get nothing but seemingly random values.. adjusting the pot has no effect.
It then occurred to me that on the Arduino, I normally connect the POT to 5v power out of the Arduino. Of course, I cant get 5v out of the Teensy, only 3.3v. Could this be why the Teensy is not reporting the POT values? If I were to run 5v to the Pot externally, would I be risking sending 5v to the analog pin on the Teensy? The Guide says to not run anything higher than 3.3v to any Teensy 3.6 pin.
Whats the workaround on this? The tutorials on the PJRC site seem geared to earlier Teensies...
Sorry if its a newbie question, just getting started on Arduino, and Teensy is newer still...
Thanks