Examples, and slides for my talk given at the Santa Barbara hackerspace 3/28/2024.
Livestream talk recording is on youtube https://www.youtube.com/watch?v=k32zjzcFPZ0
Slides are in 2024 PLC intro from Arduino background - Nick Winters.pdf
- NucleoBlink: Arduino IDE blink example
- NucleoHello: Arduino IDE example with button input, LED output, and an incrementing counter printed to serial.
- NucleoQwiicCombined: Arduino IDE example combining two I2C devices: An oled display and ambient light sensor.
- ClickHello - Read inputs and copy them to outputs
- ClickStartStop - Logic example for start and stop buttons to turn on and off the first output.
- ClickExampleWithBlink - Use inverted contact and turn on and turn off timers to blink lamp.
- OptaArduinoTestInputs - Arduino IDE example to read the analog inputs on Opta and print them to serial.
- OptaArduinoTestOutputs - Arduino IDE example to turn on each of the relay outputs on opta one at a time.
- OptaPlcLadderStartStop
- OptaPlcLadderBlink
- OptaPlcStStartStop
- OptaPlcModbusTcpServer
- OptaPlcFunctionBlockSubprocedureBlink
- MegaEthernetModbusServerDangerShield - Arduino IDE example of Modbus TCP combined with sparkfun danger shield analog inputs, 7-segment and LED outputs.
- ClickStartStopModbusClient - Modbus client to read and write to MegaEthernetModbusServerDangerShield. This needed some extra logic to wait for the Arduino.