Тёмный

Arduino Tutorial: Register Programming | Analog to Digital Conversion | Multiple Channels 

VDEngineering
Подписаться 30 тыс.
Просмотров 12 тыс.
50% 1

In this video I will be showing you how to use register level programming on Arduino, to perform analog to digital (ADC) conversion of multiple channels at once.
For this example, we will be using Pins A1, A3 and A5.
ADC involves tweaking registers such as ADCSRA, ADMUX and the Arduino prescaler.
TIMESTAMPS:
Arduino Basics: 00:15
Atmel ATmega328p Datasheets: 04:20
ADC Conversion Tutorial: 05:50
Arduino Program: 08:00
Results and Simulation: 11:00
The ADC conversion program results in a perfect voltage reading on the Arduino, where an RC filter is implemented, and an average of 100 samples is taken for each pin.
VDEngineering
My Instagram: / vinayak_desh
My Website: www.vinayakd.com/

Наука

Опубликовано:

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@sneakykidd6848
@sneakykidd6848 3 года назад
Question here, you are not really running all 3 channels at same time simply running then one at a time really fast. Is there a way using interrupts to run them simultaneously at same time?
@cemyasam
@cemyasam Год назад
program çalışmıyor. 3 pini aynı anda okuyor.
@ilkbalalkaya8295
@ilkbalalkaya8295 3 года назад
could you share the codes with uss pleaseee
@cemyasam
@cemyasam Год назад
void adc_setup() { cli(); ADMUX=0; ADMUX|=bit(MUX0); ADMUX|=bit(REFS0); ADCSRA=0; ADCSRA |=bit(ADEN); ADCSRA |=bit(ADPS0) | bit(ADPS1); sei(); } void task1() { volatile unsigned int y=0; float t; static const float ADC_to_V=1/1023.0*5; static const int ADC_CHANNELS=3; volatile float ADC_read[ADC_CHANNELS]={0,0,0}; int i=0; const int n=50; const float n_inv=1.0/n; float sum=0; while(i
@mloop9451
@mloop9451 4 года назад
Upload F22 solidworks tutorial for God sake.
@VDEngineering
@VDEngineering 4 года назад
LMAO
Далее
How to use an ADC (embedded example in C)
14:56
Просмотров 29 тыс.
3.5M❤️ #thankyou #shorts
00:16
Просмотров 726 тыс.
The Hardest Challenge!
00:37
Просмотров 6 млн
Me: Don't cross there's cars coming
00:16
Просмотров 13 млн
Analog to Digital Converter (ADC) in Arduino
25:23
Просмотров 4,8 тыс.
Level Up Your Arduino Code: Registers
21:09
Просмотров 182 тыс.
How Do ADCs Work? - The Learning Circuit
10:13
Просмотров 124 тыс.
How to Run Linux on an ESP32
18:53
Просмотров 150 тыс.
ADS1115 16 Bit ADC Module with Arduino
12:08
Просмотров 50 тыс.