Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Sanyaade  Adekoya
Published © MIT

Rapid-IoT Robotics for STEM

STEM robotics for kids ages 6-14.

IntermediateProtip10 hours1,197

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Robot Chassis [ 3D Printed Vehicle body]
×1
DC Motor Control Shield with BTN8982TA
Infineon DC Motor Control Shield with BTN8982TA
×1
Micro SDCard
×1
Breadboard (generic)
Breadboard (generic)
×1
Soldering iron
×1
Oscilloscope
×1
Ulra-Sonic sensors
×1
Camera Pan-Tilt
×1
Camera Module
Raspberry Pi Camera Module
×1

Story

Read more

Schematics

incompatible pin code

Code

Dual H-Bridge Driver Configuration Code

C/C++
Adapted and borrow from the Rapid-IoT SDK for our Robots Motor Shields
//HEADER START

//HEADER END

void ATMO_Setup() {

}


ATMO_Status_t EmbeddedNxpRpkUserButtons_trigger(ATMO_Value_t *in, ATMO_Value_t *out) {
	return ATMO_Status_Success;
}

GPIO Motors Configuration Code

C/C++
Adapted Code that were modified for Vex Robot and Donkey Car using Raspberry Pi 3 B
ATMO_Status_t HBridge2Click_setup(ATMO_Value_t *in, ATMO_Value_t *out) {
ATMO_HBRIDGE2CLICK_Config_t config;
config.ginPin = ATMO_PROPERTY(HBridge2Click, ginPin);
config.dirPin = ATMO_PROPERTY(HBridge2Click, dirPin);
config.enablePin = ATMO_PROPERTY(HBridge2Click, enablePin);
config.speedCtrlPin = ATMO_PROPERTY(HBridge2Click, speedCtrlPin);
config.initialSpeedPct = ATMO_PROPERTY(HBridge2Click, initialSpeedPct);
config.initialDir = ATMO_PROPERTY(HBridge2Click, initialDir);
config.pwmDriverInstance = ATMO_PROPERTY(HBridge2Click, pwmDriverInstance);
config.gpioDriverInstance = ATMO_PROPERTY(HBridge2Click, gpioDriverInstance);
ATMO_HBRIDGE2CLICK_Init(&ATMO_VARIABLE(HBridge2Click, handle), &config);
return ATMO_Status_Success;
}

Credits

Sanyaade  Adekoya

Sanyaade Adekoya

18 projects β€’ 55 followers
Lecturer/Developer/Programmer

Comments