728x90
출처
- M5-ProductExampleCodes/Hat/beetleC/stickC/beetleC at master · m5stack/M5-ProductExampleCodes · GitHub
- M5Stack - A series of modular stackable development devices (PC : EasyLoader)
- M5Stick-Car - M5Stack Projects : hackster.io
- M5Stick-Car - HomeMadeGarbage
- Blynk - IoT for Arduino, ESP8266/32, Raspberry Pi - Google Play 앱
- GitHub - blynkkk/blynk-library: Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
- GitHub - blynkkk/blynkkk.github.io: GitHub pages
- GitHub - blynkkk/blynk-server: Blynk is an Internet of Things Platform aimed to simplify building mobile and web applications for the Internet of Things. Easily connect 400+ hardware models like Arduino, ESP8266, ESP32, Raspberry Pi and similar MCUs and drag-n-drop IOT mobile apps for iOS and Android in 5 minutes
- Blynk Example Browser
M5StickC : BeetleC 모터제어
BeatleC는 두개의 모터 드라이버(STM32F030)와 7 개의 RGB LED, M5StickC (ESP32 기반 Wi-Fi 제어 기능)와 함께 사용하여 가장 작은 RC Car 입니다.
#include <M5StickC.h> #include "carControl.h" void blink() { for(int num = 0; num < 7; num++) { uint32_t color = 0x11 << 16; led(num, color); delay(100); led(num, 0x00); } delay(100); for(int num = 0; num < 7; num++) { uint32_t color = 0x11 << 16; led(num, color); delay(100); led(num, 0x00); } delay(100); for(int num = 0; num < 7; num++) { uint32_t color = 0x11 << 16; led(num, color); delay(100); led(num, 0x00); } } void setup() { // initialize the M5StickC object M5.begin(); Wire.begin(0, 26); M5.Lcd.fillScreen(WHITE); M5.Lcd.fillScreen(BLACK); M5.Lcd.setRotation(1); M5.Lcd.setCursor(40, 20, 1); M5.Lcd.setTextSize(2); // M5.Lcd.println("BeetleC"); blink(); leftwheel(0); rightwheel(0); } // the loop routine runs over and over again forever void loop() { leftwheel(20); rightwheel(20); delay(500); leftwheel(-20); rightwheel(-20); delay(500); leftwheel(0); rightwheel(0); }
실행 영상
728x90