Category Archives: Open Devices

Arduino Uno Super Starter Kit Analog Inputs


We will now be looking at how to use analog inputs to our Arduino UNO controller. An analog input converts a voltage level into a digital value. This can then be used in our Arduino program or sketch. The analog input signal can represent many different items. Speed, levels, distance, brightness, density, humidity, etc. are a few items that this external input can represent.
Arduino Uno Super Starter Kit Analog Inputs
We will be wiring a 10K potentiometer to the first analog input of the controller. The Arduino Uno R3 from our Super Starter Kit will be used. As the analog values changes via our potentiometer, we will use PWM to change the brightness of an LED. We will look at how this conversion from analog voltage to digital is done. Values will be displayed on the built-in serial monitor of our Arduino IDE software. Let’s get started. Continue Reading!

Arduino Uno Super Starter Kit Digital Inputs


We will now be looking at using digital inputs (pushbuttons) to turn LEDs on and off. This will be programmed using our Arduino Uno R3 from our Super Starter Kit. Pushbuttons will allow actions to be performed that our Arduino program sketch will interpret and take action.
Arduino Uno Super Starter Kit Digital Inputs
We will be wiring two pushbutton switches. A pull-down resistor will be wired to the first switch and a pull-up resistor will be wired to the second switch. This will change the state of the input (High (1) or Low (0)) based on the wiring. Two LEDs will be wired to the outputs of the Arduino Uno. This will show the state of the switches and allow the switch inputs to modify the state of the LED. We will look at three different programs.
Eliminating switch bouncing will also be discussed and programmed using our Arduino Uno super starter kit. Let’s get started. Continue Reading!

Productivity Open P1AM Arduino Modbus TCP Client to Click PLC


We will now connect our Productivity Open P1AM Arduino to a Click PLC. Using Modbus TCP the Arduino will be the Client (Master) and the Click will be the Server (Slave).
Productivity Open P1AM Arduino Modbus TCP Client to Click PLC
We will explain how to connect our P1AM-ETH Industrial Arduino Ethernet Shield to the Click PLC. The protocol will be Modbus TCP on an Ethernet communication network. Modbus is a master-slave type of communication. Masters will always send the commands to read or write to the slaves on the network. The slaves will respond if the communication is directed at them. Since this is an Ethernet network our master is known as a client and the slave as a server.
The P1AM Example from Automation Direct on GitHub will be used. It will be modified to write to holding registers and coils in the Click PLC.
github.com/AutomationDirect/P1AM-Examples/tree/master/P1AM-100_ModbusTCP_Client_Multiple
The temperature from the thermocouple input unit on the P1AM will be written to the Click PLC. Inputs from the simulator input card on our Arduino P1AM will be written to the Click PLC outputs directly. The Click PLC will also be programmed with a heartbeat circuit. This will detect if communications have been severed and will reset the outputs after 5 seconds. Let’s get started with our Arduino P1AM Modbus client to Click Modbus server. Continue Reading!

Arduino Uno Super Starter Kit LEDs


We will now be looking at LEDs that we can wire and program using our Arduino Uno super starter kit. Light-emitting diodes (LEDs) are semiconductor devices that will show light when current passes through them. This light is produced within the solid semiconductor material so it can be called a solid-state lighting device.
Arduino Uno Super Starter Kit LEDs
We will be looking at the wiring of LEDs with our breadboard. Different resistor values will be used to change the LED light brightness. We will discuss how we can calculate the amount of current passing through our LED.
An RGB LED and Red LED will then be wired to our Arduino UNO. The brightness and color of our LEDs will then be changed through the programming of the Arduino Uno. PWM outputs will be used in our program (sketch). Let’s get started. Continue Reading!

Productivity Open P1AM Web Server


We will now look at the productivity Arduino Ethernet web server that we will implement on our Productivity Open P1AM industrial Arduino controller.
Productivity Open P1AM Web Server
This P1AM Web Server Example is based on an example found here. This example uses the productivity open P1AM-ETH shield to create a web server that displays the input values of a P1-08SIM and P1-04THM to a web page. This page is automatically updated every 3 seconds. The IP address of the webserver is set in the Arduino program (Sketch) Entering this IP address in your browser to view the web page. This will display the information from our Arduino P1AM on our web browser. Let’s get started. Continue Reading!