Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.93 KB

Readme.md

File metadata and controls

24 lines (20 loc) · 1.93 KB

PLC Introduction For Arduino Friends

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

Example Programs

  1. NucleoBlink: Arduino IDE blink example
  2. NucleoHello: Arduino IDE example with button input, LED output, and an incrementing counter printed to serial.
  3. NucleoQwiicCombined: Arduino IDE example combining two I2C devices: An oled display and ambient light sensor.
  4. ClickHello - Read inputs and copy them to outputs
  5. ClickStartStop - Logic example for start and stop buttons to turn on and off the first output.
  6. ClickExampleWithBlink - Use inverted contact and turn on and turn off timers to blink lamp.
  7. OptaArduinoTestInputs - Arduino IDE example to read the analog inputs on Opta and print them to serial.
  8. OptaArduinoTestOutputs - Arduino IDE example to turn on each of the relay outputs on opta one at a time.
  9. OptaPlcLadderStartStop
  10. OptaPlcLadderBlink
  11. OptaPlcStStartStop
  12. OptaPlcModbusTcpServer
  13. OptaPlcFunctionBlockSubprocedureBlink
  14. MegaEthernetModbusServerDangerShield - Arduino IDE example of Modbus TCP combined with sparkfun danger shield analog inputs, 7-segment and LED outputs.
  15. ClickStartStopModbusClient - Modbus client to read and write to MegaEthernetModbusServerDangerShield. This needed some extra logic to wait for the Arduino.