Summary of Hello World with Arduino/Genuino MKR1000: Relay Board and AP
The author created a project using the Arduino MKR1000 to demonstrate its capabilities beyond a basic "Hello World" app. The setup involves soldering headers, installing the board in the Arduino IDE, and coding an Access Point with a built-in HTTP server. This server allows users to control a connected relay board via web browser links to switch channels on or off. The system operates by listening for GET requests on port 81 and responding with status updates or commands to toggle the relay state.
Parts used in the MKR1000 Relay Project:
- Arduino MKR1000
- Relay (generic)
Not the simple “Hello World” app but a semi-serious play with the MKR1000.

Things used in this project
Story
I won a MKR1000 at the Hackster contest and I got it on my mailbox so I said to myself .. lets keep my promise and do the project for that contest. But first .. I had to play a little with it 🙂
Here is what I have done: soldered the 2 headers on the MKR1000 kit, installed it in the Arduino IDE and started coding: created an Access Point (AP) and set up a HTTP server that responds to requests sent from a browser or any other HTTP capable client.
I had connected a relay board to the MKR1000 and used the HTTP server to switch one of its channels ON or OFF.
The schematic is really simple, just connect Digital Pin 3 to the IN of the relay board 🙂
PS: The schematics is showing an UNO not an MKR1000 as the Fritzing don’t have the last board on its library.
Schematics
Code
Source : Hello World with Arduino/Genuino MKR1000: Relay Board and AP
- How do I connect the relay to the MKR1000?
Connect Digital Pin 3 to the IN of the relay board. - What network mode does the MKR1000 use in this project?
The board creates an Access Point (AP) named dridif-greenhouse. - Can I access the control page from any device?
Yes, any HTTP capable client like a browser can send requests to the server. - Which port does the HTTP server listen on?
The server is configured to listen on port 81. - How do I turn the pump relay ON?
Navigate to the link /pump_relay_on in your browser. - How do I turn the pump relay OFF?
Navigate to the link /pump_relay_off in your browser. - What happens if I visit a non-existent path?
The server responds with a 404 error message. - Does the code check for the presence of the WiFi shield?
Yes, the setup function checks if the shield is present before proceeding.


