With the Analog shield mounted on an Arduino Leonardo, I'm seeing a zero error at each of the analog inputs with a zero voltage input or the Arduino's Ground connected to the analog pin. Using the signed read in non-differential mode, the A0 input reads -65 counts, A1 input reads -75, A2 input reads 85 and A3 reads -65. Is there any adjustment that I can make to the board to reduce this zero error? 

This zero error persists even when I switch from powering the board through the USB to a wall wart power supply. 


Edited by energyzappa

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @energyzappa,

The Analog shield was made to work with the Adruino UNO and the ChipKit UNO32 and UC32. The Arduino Leonard is an ATmega32u4 where the Arduino UNO is a ATmega328P and the uc32 is a Microchip PIC32MX340F512H and the UNO32 is a Microchip PIC32MX320F128H. You would need to add support for the ATmega32u in the analogShield.cpp and AnalogShield.h to use the librarys that are provided. Unfortunately, I do not have an Arduino Leonardo so i would not be able to trouble shoot your specific issue. I do know that it works as described on the uno,uno32 and uc32.

thank you,


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now