1. We want to convert an analog sinusoid with a range of -3.3V to +3.3V to an 8-bit digital signal with a sample rate of 8000Hz. Answer the following questions:
- What is the step size in volts?
- What is the worst-case quantisation error?
- How long is the gap between adjacent samples, in seconds?
2. Using the LEDs on the mbed board, produce the following patterns:
⁃ Flash each LED from left to right, then from right to left, without any lights being on at the same time. Each LED should be turned on for 500 milliseconds, then when the LED switches off, the next LED should light up simultaneously. This process should occur ten times.
⁃ Turn the LEDs on for 200 milliseconds in a random order. Each time an LED is switched off, the next LED should light up. Run this process indefinitely.
3. Read temperature data into the mbed and use the LEDs to give a visual indication of the heat data (you should set the range of each LED, based on the observed temperature fluctuation in the room). Make a note of your design decisions.
1.
2.
can anyone help me for the code please .
Hello,
I have a beginner lvl question. I want to read from an tmp sensor
but the line:
only give out the pointer address 0x48 and 0x00, but I expect values like 0x18, 0xXX (from the sensor). I don't see the problem :D