Ammz Padam
Published

Robotics Maker PI RP2040

With Maker PI RP2040 I am making my first Arduino Project.

BeginnerFull instructions provided10 hours305
Robotics Maker PI RP2040

Things used in this project

Hardware components

PicoBricks
PicoBricks - Make, Run, Split, Merge, Just What You Needed PicoBricks
×1
Ultrasonic Sensor - HC-SR04
SparkFun Ultrasonic Sensor - HC-SR04
×1
Arduino Wifi Shield 101
Arduino Wifi Shield 101
×1
Raspberry Pi 1 Model A+
Raspberry Pi 1 Model A+
×1

Software apps and online services

Arduino IDE
Arduino IDE
Windows 10 IoT Core
Microsoft Windows 10 IoT Core

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver
Helping Hand Tool, with Magnifying Glass
Helping Hand Tool, with Magnifying Glass
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

Story

Read more

Schematics

Motor Drive

Motor_Drive_MzmvaMYLFG.info

Code

HC-SR04_Simple

Arduino
Arduino

It is coding for ultrasonic sensor. with is coding you can control robot direction left to right and forward and backward
#include <HCSR04.h>

byte triggerPin = 4;
byte echoPin = 5;

void setup () {
  Serial.begin(9600);
  HCSR04.begin(triggerPin, echoPin);
}

void loop () {
  double* distances = HCSR04.measureDistanceCm();
  
  Serial.print("1: ");
  Serial.print(distances[0]);
  Serial.println(" cm");
  
  Serial.println("---");
  delay(250);
}

Credits

Ammz Padam

Posted by Ammz Padam

Comments

Please log in or sign up to comment.