Stock Monitoring featuring 4Duino-24




In this project, we will use several IR sensors to check if an item from an inventory box is present or not.

This project makes use of a 4Duino-24 to check whether an item is present or missing from the inventory. The 4Duino uses its analog pins to read the values from each IR sensor. This reading value changes depending on whether or not the item is present.

Stock Monitoring featuring 4Duino-24




The 4Duino is set to send most recent status to a Thing Speak channel every 15 seconds.

How it works

Components

  • 4Duino-24
  • 1 Box with 4 or more slots
  • 4 or more IR LEDs
  • 4 or more IR Phototransistors
  • uUSB cable
  • uSD Card

Implementation

Step 1: Build

Build the circuit as shown in the following diagram and table.

Step 2: Program

Workshop 4 – 4Duino Basic Graphics environment is used to program this project.

This project requires the Arduino IDE to be installed as Workshop calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino.
Open this file using Workshop 4.

 

Note: Download the code here.

Step 3: Compile

Click on the “Compile” button.

Note: This step could be skipped. However, compiling is essential for debugging purposes.

Stock Monitoring featuring 4Duino-24 schematic

Step 4: Comms Port

Connect the 4Duino to the PC using µUSB cable.

Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.

Read more: Stock Monitoring featuring 4Duino-24

JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory: https://www.youtube.com/watch?v=_XCznQFV-Mw

READ  Proximity Sensing with the VCNL4000 + Arduino




Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
MKR1000 WiFi Robot
MKR1000 WiFi Robot

This project consists of a small robot controlled via WiFi using an Arduino MKR1000, MKR2UNO Shield Adapter and Arduino Motor...

Close
Scroll to top