Current Outputs (PEAK_AUTO)
Intro
The MAXI Automation is the version of NEXTuino PEAK specifically tailored for automation specialists. It features:
- 2x Analog Inputs 0–10V
- 2x Analog Outputs – 0–10V (0–20mA)
If you need current (0–20mA) outputs instead of voltage (0–10V) outputs, you can convert them by removing two 0Ω resistors on the Maxi Automation control board.
Hardware Required
- NEXTuino PEAK FLEX
- 24V DC Power supply
- Soldering iron
- Tweezers
Note: Pin header is working on 5V TTL levels. Voltage levels over 5.5V can damage the NEXTuino permanently.
Code
#include <NEXTuino.h>
void setup() {
pinMode(NEXTuino_AO0, OUTPUT);
pinMode(NEXTuino_AO1, OUTPUT);
}
void loop() {
int analogOut0 = 127; // 0-255 → 0-10000mV or 0-20000uA
int analogOut1 = 255; // 0-255 → 0-10000mV or 0-20000uA
analogWrite(NEXTuino_AO0, analogOut0); // 5V or 10mA
analogWrite(NEXTuino_AO1, analogOut1); // 10V or 20mA
}
If you cannot compile, make sure you have selected NEXTuino PEAK FLEX as the board!
Steps to Convert to Current Outputs
Step 1
Remove the NEXTuino PEAK FLEX cover by lifting the marked sides with a flat-head screwdriver.
Step 2
Remove the plastic sides and disconnect the NEXTuino connection board from the NEXTuino PEAK FLEX.
Step 3
Locate the two 0Ω resistors on the NEXTuino control board.
Step 4
Apply heat with a soldering iron and use tweezers to remove the two 0Ω resistors. This converts the outputs to current mode (0–20mA).
To revert back to voltage outputs (0–10V), solder the resistors back onto the control board.