# Hardware The **T** in IoT is **Things** and refers to devices that interact with the world around us. Each project is based around real-world hardware available to students and hobbyists. We have two choices of IoT hardware to use depending on personal preference, programming language knowledge or preferences, learning goals and availability. We have also provided a 'virtual hardware' version for those who don't have access to hardware, or want to learn more before committing to a purchase. > 💁 You don't need to purchase any IoT hardware to complete the assignments, you can do everything using virtual IoT hardware. The physical hardware choices are Arduino, or Raspberry Pi. Each platform has it's own upsides and downsides, and these are all covered in one of the initial lessons. Review that lesson to decide which hardware platform you are most interested in learning. The specific hardware was chosen to reduce the complexity of the lessons and assignments. Although other hardware may work, we cannot guarantee all the assignments will be supported on your device without additional hardware. For example, a lot of Arduino devices do not have WiFi, which is needed to connect to the cloud - the Wio terminal was chosen because it has WiFi built in. You will also need a few non-technical items, such as soil or a pot plant, and fruit or vegetables. ## Arduino All the device code for Arduino is in C++. To complete all the assignments you will need the following: ### Arduino hardware * [Wio Terminal](https://www.seeedstudio.com/Wio-Terminal-p-4509.html) * Optional - USB-C cable or USB-A to USB-C adapter. The Wio terminal has a USB-C port and comes with a USB-C to USB-A cable. If your PC or Mac only has USB-C ports you will need a USB-C cable, or a USB-A to USB-C adapter. ### Arduino specific sensors and actuators These are specific to using the Wio terminal Arduino device, and are not relevant to using the Raspberry Pi. * [Grove camera kit](https://www.seeedstudio.com/Grove-Serial-Camera-Kit.html) * [Grove speaker plus](https://www.seeedstudio.com/Grove-Speaker-Plus-p-4592.html) ## Raspberry Pi All the device code for Raspberry Pi is in Python. To complete all the assignments you will need the following: ### Raspberry Pi hardware * [Raspberry Pi](https://www.raspberrypi.org/products/raspberry-pi-4-model-b/) > 💁 Versions from the Pi 2B and up should work with the assignments in these lessons. * SD Card (You can get Raspberry Pi kits that come with an SD Card) * USB power supply (You can get Raspberry Pi 4 kits that come with a power supply). If you are using a Raspberry Pi 4 you need a USB-C power supply, earlier device need a micro-USB power supply ### Raspberry Pi specific sensors and actuators These are specific to using the Raspberry Pi, and are not relevant to using the Arduino device. * [Grove Pi base hat](https://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi) * [Raspberry Pi Camera module](https://www.raspberrypi.org/products/camera-module-v2/) * Microphone and speaker: * Any USB Microphone * Any USB speaker, or speaker with a 3.5mm cable or * [USB Speakerphone](https://www.amazon.com/USB-Speakerphone-Conference-Business-Microphones/dp/B07Q3D7F8S/ref=sr_1_1?dchild=1&keywords=m0&qid=1614647389&sr=8-1) * [Grove Light sensor](https://www.seeedstudio.com/Grove-Light-Sensor-v1-2-LS06-S-phototransistor.html) ## Sensors and actuators Most of the sensors and actuators needed are used by both the Arduino and Raspberry Pi paths: * [Grove LED](https://www.seeedstudio.com/Grove-LED-Pack-p-4364.html) x 2 * [Grove humidity and temperature sensor](https://www.seeedstudio.com/Grove-Temperature-Humidity-Sensor-DHT11.html) * [Grove capacitive soil moisture sensor](https://www.seeedstudio.com/Grove-Capacitive-Moisture-Sensor-Corrosion-Resistant.html) * [Grove relay](https://www.seeedstudio.com/Grove-Relay.html) * [Grove 125KHz RFID reader](https://www.seeedstudio.com/Grove-125KHz-RFID-Reader.html) * [RFID tags (125KHz)](https://www.seeedstudio.com/RFID-tag-combo-125khz-5-pcs-p-700.html) * [Grove GPS (Air530)](https://www.seeedstudio.com/Grove-GPS-Air530-p-4584.html) * [Grove - Ultrasonic Distance Sensor](https://www.seeedstudio.com/Grove-Ultrasonic-Distance-Sensor.html) ## Optional hardware The lessons on automated watering work using a relay. As an option, you can connect this relay to a water pump powered by USB using the hardware listed below. * [6V water pump](https://www.seeedstudio.com/6V-Mini-Water-Pump-p-1945.html) * [USB terminal](https://www.adafruit.com/product/3628) * Silicone pipes * Red and black wires * Small flat-head screwdriver ## Virtual hardware The virtual hardware route will provide simulators for the sensors and actuators, implemented in Python. Depending on your hardware availability, you can run this on your normal development device, such as a Mac, PC, or run it on a Raspberry Pi and simulate only the hardware you don't have. For example, if you have the camera but not the Grove sensors, you will be able to run the virtual device code on your Pi and simulate the Grove sensors, but use a physical camera. The virtual hardware will use the [CounterFit project](https://github.com/CounterFit-IoT/CounterFit).