Red Board Edge

Trying to get my Redboard Edge to work with my Arduino program. The system consist of a 4 digit display, a reset button and seven IR sensors. As the sensor beam is broken a score of 10 to 100 is displayed and the ball counter decreases by one. After 9 scores (balls) the LED on the reset button lights up. Pressing the button resets the ball counteer to 9. The game starts again.

The Redboard claims 14 digital inputs like the Arduino. The only ones I can get to work are pins 3,5 and 6. My Arduino program which works ID’s 7 inputs, pins 2 thru 8 to score 100,100,50,40,30,20,and 10.

Your write up states pins A6 and A7 are for analog only. How do you make the other “A” pins accept digital inputs. The display uses the Qwiic port which works OK.

Your write up compares the Edge to the original Red Board which has a pin layout similar to the Arduino.

Any suggestions on how to program the pins.

Real close to getting it to work. Thanks for your Replies.

Dave

Hi Dave,

To use one of the analog pins as an input, just declare it as one like this for A0:

pinMode(A0, INPUT);

and then just use digitalWrite(); for that pin to toggle it.

One caveat (aside from A6 and A7 being analog only) is the I2C port on the Edge is tied to A4 and A5 so you cannot use those and the Qwiic connector/I2C bus at the same time.

Mark,

Modified the analog pins I needed with INPUT_PULLUP and all worked fine.

I just wanted to thank you for all your support on my Redboard Edge project. You must have a world of knowledge and SparkFun is lucky to have you on their support team.

Dave

Awesome! Let us know if you run into any other issues or have questions about the RedBoard Edge or other SparkFun parts in your project and we would be happy to help as much as we can.