[Robot] Drive 2 motors with the encoders #1

Closed
opened 2024-02-10 13:46:22 +00:00 by benvii · 2 comments
Owner

Create in a robot folder using this file tree :

robot/
     arduino/
         README.md  --> Explain in this file that we are using Arduino for a spike / test
         main.cpp
         motor_encoder.cpp
         motor_encoder.h
         doc/
            schematic.png --> You can use fritzing to draw this
            schematic.fzz 

Create a CPP class to handle one motor based on this code :
https://wiki.dfrobot.com/Micro_DC_Motor_with_Encoder-SJ01_SKU__FIT0450

Arduino : digitalPinToInterrupt(pin) https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/

Create in a robot folder using this file tree : ``` robot/ arduino/ README.md --> Explain in this file that we are using Arduino for a spike / test main.cpp motor_encoder.cpp motor_encoder.h doc/ schematic.png --> You can use fritzing to draw this schematic.fzz ``` Create a CPP class to handle one motor based on this code : https://wiki.dfrobot.com/Micro_DC_Motor_with_Encoder-SJ01_SKU__FIT0450 Arduino : digitalPinToInterrupt(pin) https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/
Adrien was assigned by benvii 2024-02-10 13:50:57 +00:00
Author
Owner
https://curiores.com/positioncontrol
Owner

Projet terminé.

Projet terminé.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MDL29/LPH-cubito#1
No description provided.