- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.