Microbit is used for Bluetooth radio remote control.
Combined Transmitter code:
Toggle switch on transmitter, connected to Pin 14, switches function from car control to robo arm control.
Receiver Code:
Uses strings to control car function.
Tilt of remote is used to drive car motors by sending number codes for forward, reverse, left, right
Logo(touch sensor) is used to shut off motors
A and B buttons are used to open and close servo motors
Download hex files:
https://drive.google.com/drive/folders/1a5V_Xw4zG903T39a7QqLuSIE9TIl7fqA?usp=sharing
Extension: Motorbit
Additional buttons could be added.
https://thestempedia.com/product/dabble/?srsltid=AfmBOopG5VAsPXc5b-r8DL9mjmCz5RJPYCYmXcMZz0FJ9XaQ3R7ZfJ7T
SoftwareSerial library so you can keep the hardware serial pins free for programming and debugging. [1, 2, 3, 4]- VCC connects to the Arduino's 5V pin.
- GND connects to the Arduino's GND pin.
- HM-10 TX goes to Arduino Digital Pin 10.
The iRobot 310 SUGV (Small Unmanned Ground Vehicle) is a man-portable robot manufactured by iRobot Corporation. The SUGV is intended for use by soldiers, combat engineers and mobile explosive ordnance disposal (EOD) technicians to gather data for situational awareness in critical conditions.
https://www.army-technology.com/projects/irobot-310-sugv-us/
Seen at Sail Boston July 11th:
Wyze Cam OG Indoor/Outdoor 1080p Wi-Fi Smart Home
DC 12V 3RPM 12Kg.cm 8mm Double Shafts Self-Locking Reversible Worm Gear Motor
HobbyPark Waterproof Servo 20KG Servo Motor High Torque RC Servo Metal Gear Digital Servo with 25T Servo Horn for 1/10 1/12 RC Car Robot DIY Control Angle 180°
- τ (Torque): The twisting force that makes the robot arm rotate.
- m (Mass): The weight of the payload or arm segment in kilograms.
- g (Gravity): Constant acceleration of 9.81 m/s².
- d (Distance): The length from the pivot point to the object's center of mass.
- Find Mass: Find the weight of your item in kilograms.
- Find Distance: Measure how far the item is from the motor in meters.
- Check the Angle: Multiply the mass × gravity × distance. Multiply that total by the cosine of your angle.
Torque = 9.81 N ⋅ m × 1 = 9.81 N ⋅ m [1]
----------------------------------------------------------------
Kitronik Robotics Board:
I suggested using Microbit V2 and Kitronik Robotics Board, enabling Bluetooth wireless control of up to 8 servomotors.
Remote Control:
- Click on the gear icon (Settings) or scroll to Advanced in the block menu.
- Click on Extensions.
- Search for "Kitronik Robotics" and select the Kitronik Robotics Board extension.
- Servo 1 (Base): Controls the rotation left or right.
- Servo 2 (Shoulder): Controls the arm moving up or down.
input.onButtonPressed(Button.A, function () {
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo1, 0)
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo2, 90)
})
input.onButtonPressed(Button.B, function () {
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo1, 180)
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo2, 45)
})
input.onButtonPressed: These blocks wait for you to physically press the buttons on the front of the micro:bit.
- Use a second micro:bit as a remote control.
- Create looping variables so the arm moves gradually instead of snapping immediately to an angle.
- Click on the gear icon (Settings) or scroll to Advanced in the block menu.
- Click on Extensions.
- Search for "Kitronik Robotics" and select the Kitronik Robotics Board extension.
- Servo 1 (Base): Controls the rotation left or right.
- Servo 2 (Shoulder): Controls the arm moving up or down.
input.onButtonPressed(Button.A, function () {
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo1, 0)
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo2, 90)
})
input.onButtonPressed(Button.B, function () {
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo1, 180)
kitronik_robotics_board.servoWrite(kitronik_robotics_board.Servos.Servo2, 45)
})
input.onButtonPressed: These blocks wait for you to physically press the buttons on the front of the micro:bit.
- Use a second micro:bit as a remote control.
- Create looping variables so the arm moves gradually instead of snapping immediately to an angle.
With the Kitronik Compact Robotics Board, the BBC micro:bit can be used to drive 4 motors (or 2 stepper motors) and 8 servos. Coupled with 17 other I/O expansion points, this means the BBC micro:bit can very easily become the core of a whole variety of robotics projects. The board is small on footprint but big on features and connectivity.
The Robotics Board features 2 Dual H Bridge Motor Driver ICs (capable of driving 2 standard motors or 1 stepper motor each) and 8 servo outputs (capable of driving standard and continuous rotation servos), all controlled from the BBC micro:bit using the I2C protocol via a 16 channel driver IC. Our custom MakeCode blocks make using I2C easy, even for novice users.
The Link header breaks out all the usable pins from the BBC micro:bit, and is designed to allow 2.54mm pitch pin header to be easily soldered into place. The 17 available I/O pins allow other input devices, for example, sensors, or output devices, such as ZIP LEDs, to be added to the board. The I2C communication lines are also broken out (Pins 19 & 20), which means other I2C compatible devices can also be added to the board and controlled by the BBC micro:bit.
Power is provided via either a terminal block or servo style connector. The supply is then controlled by an on/off power switch to the board. There is also a green LED to indicate when the board is turned on. The board then produces a regulated 3.3V supply which is fed into the 3V and GND connections to power the connected BBC micro:bit. This removes the need to power the BBC micro:bit separately. The 3V and GND pins are also broken out on the Link header, which means external devices can also be powered.
To use the compact robotics board, the BBC micro:bit should be inserted firmly into the edge connector, with the LEDs and buttons visible from the front.
Kitronik has produced a set of custom blocks for the MakeCode editor to simplify using the Compact Robotics Board for BBC micro:bit. To add them to the editor, select the cog icon in the top right of the editor. Then, select Extensions from the drop-down menu and in the search bar type and enter Kitronik. Pick the Kitronik robotics Board from the list and the new blocks will be added to the menu in the editor.

















No comments:
Post a Comment