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

Поделиться
HTML-код
  • Опубликовано: 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?

  • @ilkbalalkaya8295
    @ilkbalalkaya8295 3 года назад +2

    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

  • @cemyasam
    @cemyasam Год назад

    program çalışmıyor. 3 pini aynı anda okuyor.

  • @mloop9451
    @mloop9451 4 года назад

    Upload F22 solidworks tutorial for God sake.