At 24:34 now I know how to stabilise readings on analog read. Normally I have big error between readings and I could not figure out how stabilise voltage to get clean readings. Now You show me this card, and I come up with Idea how I can try correct bad readings. Or make lower error .
in successive approximation (around the 9:00 mark), shouldn't the second most significant bit be a zero? If the reference voltage is 3.39 volts, that is 67.8% of 5.. So should correspond to 694 (67.8% of 1023, the largest decimal representation of a ten bit number), which is 1010110110 in binary.. Thanks in advance, and awesome videos!!
Wow! Thanks for pointing that out. The plot shown is correct and the procedure is correct, but it looking at this more carefully, I realize that I had the bits in the WRONG ORDER! The LSB is the first one obtained, not the MSB, etc.
Hi, Robert! Could you please clarify one thing. When I use timer at free running mode, it works well until I add Serial.println(value) into the loop. It always prints me "0". I can't understand why it's happening. I've tried to disassemble the program and figure out what is the problem , but I can't find what breaks the ADC. Thank you in advance.
It seems that you are wrong at 42:43. ADCL must be read first and then ADCH. Documentation says: "Once ADCL is read, ADC access to Data Registers is blocked. [...] When ADCH is read, ADC access to the ADCH and ADCL Registers is re-enabled". Read order does not depend to ADLAR value. I've changed the order and now it works even with Serial.print(). It took me three days to find that out. I hope it helps someone.
Hi Robert Paz: I was not able to access the lecture slides at: "drive.google.com/openid=0B5jlwlXJI8pJVGgwOEg5TFNBTGs". It shows a 404 ERROR. Will it be possible to share the lecture slides for all the videos including your videos on "Arduino Assembly", "Arduino Basics" & "Hands-on Arduino". This would help a lot of people as it would be good reference material. Thanks a ton in advance.
Subscribed fan of your Arduino MCU tutorials, Kenyan Bio instrumentation engineer, thankyou
Choosing 1.1v as input can make sense if you want to measure supply voltage. Select vcc as ref and you can calculate vcc=1.1v/adcResult
25:43 I think can be make conversion according to ground, when we measure negative voltage on input.
At 24:34 now I know how to stabilise readings on analog read. Normally I have big error between readings and I could not figure out how stabilise voltage to get clean readings. Now You show me this card, and I come up with Idea how I can try correct bad readings. Or make lower error .
in successive approximation (around the 9:00 mark), shouldn't the second most significant bit be a zero? If the reference voltage is 3.39 volts, that is 67.8% of 5.. So should correspond to 694 (67.8% of 1023, the largest decimal representation of a ten bit number), which is 1010110110 in binary..
Thanks in advance, and awesome videos!!
Wow! Thanks for pointing that out. The plot shown is correct and the procedure is correct, but it looking at this more carefully, I realize that I had the bits in the WRONG ORDER! The LSB is the first one obtained, not the MSB, etc.
Hi, Robert! Could you please clarify one thing. When I use timer at free running mode, it works well until I add Serial.println(value) into the loop. It always prints me "0". I can't understand why it's happening. I've tried to disassemble the program and figure out what is the problem , but I can't find what breaks the ADC. Thank you in advance.
It seems that you are wrong at 42:43. ADCL must be read first and then ADCH. Documentation says: "Once ADCL is read, ADC access to Data Registers is blocked. [...] When ADCH is read, ADC access to the ADCH and ADCL Registers is re-enabled". Read order does not depend to ADLAR value. I've changed the order and now it works even with Serial.print(). It took me three days to find that out. I hope it helps someone.
Hi Robert Paz: I was not able to access the lecture slides at: "drive.google.com/openid=0B5jlwlXJI8pJVGgwOEg5TFNBTGs". It shows a 404 ERROR. Will it be possible to share the lecture slides for all the videos including your videos on "Arduino Assembly", "Arduino Basics" & "Hands-on Arduino". This would help a lot of people as it would be good reference material. Thanks a ton in advance.
I dint know that i can use capacitor to aref... :/
can you display the Chinese of this Video . Thank you!
Around 8:20 he's mistaken between VR and Vx.