Is it possible to use this sensor (https://www.adafruit.com/product/4664#technical-details) with a feather huzzah without adding any additional hardware? Are there any library etc that I'd need to load? Also, if you could point me to an similar example using UART TTL input using Arduino IDE that would be much appreciated.
https://www.adafruit.com/product/4664#technical-details
Thank you very much in advance.
UART TTL Input with Feather Huzzah
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15827
- Joined: Tue Oct 20, 2015 3:22 pm
Re: UART TTL Input with Feather Huzzah
Tx/Rx are used for the USB adaptor, but it looks like there are other UART serial you can use, maybe pins 15 & 13? In the worst case you can use software serial. See https://docs.arduino.cc/learn/built-in- ... are-serial. The sensor runs at 9600 baud, which is plenty slow enough for software serial to work great.
Dave
Dave
- mikeysklar
- Posts: 14193
- Joined: Mon Aug 01, 2016 8:10 pm
Re: UART TTL Input with Feather Huzzah
The Feather Huzzah ESP8266 hardware serial pins are linked into the USB console so using them for UART TTL communication is troublesome. Ideally another controlled would be selected as pretty much any other modern Feather will give you a second hardware UART TTL access for peripherals.
However, you can use software serial. Something like this:
However, you can use software serial. Something like this:
Code: Select all
#include <SoftwareSerial.h>
void setup() {
SoftwareSerial mySerial(14, 12, 128);
mySerial.begin(9600);
}
void loop() {
if (mySerial.available()) {
serialData = mySerial.read();
}
}
Please be positive and constructive with your questions and comments.