I'm trying to set up a simple code that reads an analog voltage and will turn on an LED if it is over a certain threshold on my Piccolo launchpad f28027.
I am very new to this kind of software and hardware. I was able to write code that would blink an LED at a certain period using simulink, but have not been able to do much more than that.
First off, what family of blocks should I be using from matlab. There is no group called "F2802x" in the support package provided and I'm not sure which one to use.
Second, how should I configure the ADC block in simulink. I just want it to start reading as soon as I load the code onto my hardware and turn the led on and off accordingly.
Third, does the ADC block give a voltage or a number from 0-4096 as an output.
Thanks!