Announcement

Collapse
No announcement yet.

4Duino 24 (With Picasso Processor): Addressing all available Analog inputs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 4Duino 24 (With Picasso Processor): Addressing all available Analog inputs

    Hi there

    I'm using a 4Duino 24 (With Picasso Processor) and I need to read 8 values from the Analog inputs. I can easily address the Analog Pins A0 to A5, but I'm not sure how to write the code to read the analog values on the D8 and D9 pins? Any advice please?

    Code for Analog in A0 to A5:
    int CH1_sensor = A0; // Channel 1 sensor
    int CH2_sensor = A1; // Channel 2 sensor
    int CH3_sensor = A2; // Channel 3 sensor
    int CH4_sensor = A3; // Channel 4 sensor
    int CH5_sensor = A4; // Channel 5 sensor
    int CH6_sensor = A5; // Channel 6 sensor

    Regards Click image for larger version

Name:	4Duino Analog Pins 1.JPG
Views:	11
Size:	174.8 KB
ID:	58599


    Click image for larger version

Name:	4Duino Analog Pins.JPG
Views:	11
Size:	169.0 KB
ID:	58598


    Attached Files

  • #2
    Hello,

    You won't be able to use these two pins as they are physically connected to the ESP8266. It may be possible to use the RX line of the ESP8266, TX pin of the 32u4 but it isn't recommended.

    I hope this helps

    Best regards

    Paul

    Comment


    • #3
      Hi Paul

      I don't want to use the ESP8266 for this application, I rather want to use 8 x Analog input pins. Is it at all possible to use these pins?

      Regards

      Comment


      • #4
        you can add more analog inputs of 10bits via mcp3004/8 on the spi bus

        Comment


        • #5
          Originally posted by jdjager View Post
          Hi Paul

          I don't want to use the ESP8266 for this application, I rather want to use 8 x Analog input pins. Is it at all possible to use these pins?

          Regards
          Hi,

          The ESP8266 is physically connected so it wouldn't be possible to use TX pin of the ESP8266. It would be possible like tonton81 suggest's by using a MCP3004/8 or similar.

          Best regards

          Paul

          Comment

          Working...
          X