Summary of Control Arduino Wirelessly with MATLAB
This article demonstrates a simple project to control an Arduino wirelessly via MATLAB using an ENC28J60 Ethernet shield. The Arduino, connected to a router through the Ethernet shield, communicates with MATLAB running on a PC. An LED connected to the Arduino indicates successful wireless communication. The setup involves configuring the Ethernet shield, ensuring correct IP settings within the router's DHCP range, and uploading the appropriate Arduino code. This approach enables wireless control without physical USB connections once the system is set up.
Parts used in the Control Arduino Wirelessly with MATLAB project:
- Arduino (or Gizduino controller)
- ENC28J60 Ethernet Shield
- Wi-Fi Router
- LED
- Printer Cable (USB cable for Arduino-PC connection)
- UTP Cable (Ethernet cable)
Been seeing few DIYs on how to establish a communication between MATLAB application and Arduino that is hardwired to PC. However, I haven’t encountered anything that control Arduino via MATLAB wirelessly using the ENC28J60 compatible Ethernet shield. In this ible’, I’m going to show the simplest way to control Arduino using MATLAB wirelessly.
WHAT YOU NEED?
1) Arduino – You need a controller. I used Arduino since it is supported by MATLAB. For this project however I used, Gizduino, a locally made Arduino-based controller.
2) Ethernet Shield – You need a compatible Ethernet shield for your board. I used the ENC28J60 for my board.
3) Wi-Fi Router – To connect your Arduino which would be the means to communicate to your PC wirelessly.
4) LED – Any components to indicate communication between devices. For this project I used LED.
5) Printer Cable – To connect Arduino to your PC.
6) UTP Cable – To connect your Ethernet shield to the router.
Step 1: Connect Ethernet Shield to Arduino
Step 2: Connect LED
Connect any components that could indicate communication between devices. In this ‘ible I used an LED. Will try to turn LED on and off wirelessly using MATLAB. I’ve connected my LED’s anode (long pin) to Digital I/O pin 6 of the Ethernet shield attached to the Arduino and LED’s cathode (short pin) to Ethernet’s GND.
Step 3: Connect Arduino to PC
Step 4: Connect Ethernet Shield to Router
Step 5: Open Arduino IDE
Step 6: Upload Code to Arduino

2. Ethernet Shield
3. Wi-Fi Router
4. LED
5. Printer Cable
6. UTP Cable
For more detail: Control Arduino Wirelessly with MATLAB