Once you've selected the components you waLunant, click on Generate and our engines will start working on your circuit and will generate your circuito reply. The reply has three parts:
1. BoM - A list of all the components you'll need for the project, including auxiliary parts such as resistors and capacitors.
2. Step-by-step wiring guide - shows you how to connect all your components to the Arduino board using a breadboard.
3. Code - a sample code for your circuit. This code is not specific for the pet feeder project, but rather it is a sample code that creates an interaction between the different components in your circuit.
To Upload the code, follow these steps:
- Download the code from the circuito.io reply
- Extract it to your computer
- Open with Arduino IDE
- Upload to your Arduino
4. Once everything is set up, replace the sample code from the circuito reply with the code in this tutorial. Make sure to leave the //Include Libraries and //Pin Definitions at the top of the code, and also keep all the libraries that are on the original code from circuito.io.
4. Connectivity - this section will guide you how to configure the connection of your project to the internet.
- Download the dashboard.json file from this tutorial
This will redirect you to freeboard.io and give you a basic dashboard, already connected to your Arduino sketch using a unique ‘thingName’. You can see your thingname in the firmware.ino provided.
- Click on "clone" - if you don't have a Freeboard account, you'll have to create one at this point. But don't worry, it's free.
- After sign-up you'll see the following screen:

- Click on the settings icon at the top of the page. This should update your dashboard to look like this:

- click IMPORT (2)
- Browse and choose the dashboard.json file you downloaded earlier. This should update your dashboard to look like this:

Troubleshooting:
- If it doesn’t work - try refreshing the page or try importing again.
- Check that the dashboard is set up correctly with your firmware. Click on ‘Dweet’ under DATASOURCES (3) You should see this:

- Make sure that the input thingname is the same as the one in your firmware.ino.
- Hover over the OUTPUTS pane and click on the new settings icon that appears below the original one.
- This window will open:

- click on JS EDITOR and look for this line:

- change the value to the given ‘thingname’ in your firmwae.ino.
- CLOSE and SAVE.
Assembly
Now that you have the electronics set up, it's time to put the parts together.
We designed a 3d printed casing for the servo, the PIR sensor and the speaker.
The .stl files are attached here. This part isn't mandatory and you can choose to connect it in a different way, it's really up to you, but look how nice and colorful it is :)

Congratulations! You're done!
You're pretty much set to go. You may need to make small adjustments in the code and calibrate the different sensors.
We would love to see your take on this project, feel free to share it and ask questions if something isn't clear. Good luck!