Basic Analog inputs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hey Guys I'm coming from a basic arduino Uno and was wondering how I would be able to get a analog input and display it using a Serial output (already know how to get that to work). Right now the issue is that I have a basic moisture sensor (YWROBOT moisture sensor) and any attempts are worthless on my part

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Would be helpful when you post a link to your sensor's datasheet. Within a PSoC4 are OPAmps for signal conditioning that could help you.

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

For starters, look at this example from "100 projects in 100 days" initiative: "thermistor example". It does basically what you want - take an ADC reading and send it to the UART. You just need to remove the thermistor handling / temperature conversion (except when your sensor happens to be a thermistor, of course :).

0 Likes
Anonymous
Not applicable

Are you using DHT11 sensor, it requires a One Wire interface ?

   

 

   

Google "bit bang one wire" and there is code base out there to use a GPIO

   

pin on various processors to implement interface that you could possibly port.

   

 

   

Regards, Dana.

0 Likes