c program
$30-5000 USD
Bezahlt bei Lieferung
Continuously read ADC channel 0 and print the digital value to the serial output. Remember to initialise the serial channel. Take a copy of this program and convert the ADC value into a time period in seconds and print this value on the VDU. (Hint - either use a series of if-else statements or use a look up table approach using an array). This is best done by calling a function, passing the ADC value as an argument. The function should return the equivalent time period which can be printed to verify that the program is working correctly
// function call from main function
time_period = convertADCtoTime(ADCvalue);
//Acutal function to convert ADCvalue to time period
int convertADCtoTime(int ADCvalue)
{
// do the conversion
return time_period;
}
## Deliverables
please see attached file for the full project and specifications
## Platform
windows xp
Projekt-ID: #3565365