“Paoon!”SPIKE Prime Elephant: Cute Robot Moves With C!

by AfrelEdTech in Circuits > Robots

8 Views, 0 Favorites, 0 Comments

“Paoon!”SPIKE Prime Elephant: Cute Robot Moves With C!

SPIKE Prime Elephant: Cute Robot Moves with C!

We created an elephant using SPIKE Prime and tried moving it using C language!

Supplies

スクリーンショット 2025-06-20 084444.png
スクリーンショット 2025-06-20 100226.png

 SPIKE Prime

 B: Color Sensor

 C: Motor for Nose

 D:Motor for walking

Structure: Three Movements

  1. Raises its trunk and wiggles it gently, like a trumpet sound "Paoon!"
  2. Moves forward until it detects the color blue with its color sensor — then acts like it's drinking water
  3. Raises its trunk, moves forward for 3 seconds, stops, and lowers its trunk (in the video, it's carrying a banana)

Coding

program-water.png
program-banana.png
program-paon.png

【Free Trial】Start C Language Programming With Afrel's Educational Materials

Guide to running SPIKE Prime in C language

Are you intrigued by the idea of programming your SPIKE™ Prime with C? Did you know that Afrel is a key information provider for SPIKE™ Prime?


To meet the demand of those who want to "learn more about SPIKE™ Prime " and "try programming in C," Afrel has developed and sells educational materials for learning C language programming with SPIKE™ Prime.

Stepping up from Python to C is an excellent opportunity to further enhance your programming skills. Learning C will give you a deeper understanding of how computers work and enable more advanced control.


Afrel's C language materials are designed for beginners, ensuring a smooth learning experience. Why not take this chance to discover the joy of controlling SPIKE™ Prime with C and expand your programming horizons?


If you're ready to tackle C language programming, click the link below for more details.


Learn more about SPIKE™ Prime C Language Programming Materials here