Node.js FORKED library that extends TJBot's basic capabilities with two arms and multiple LEDs support
First of all, read https://github.com/ibmtjbot/tjbot
Some details:
- Edited tjbot.js adding new code without change current codes:
- Added two additional hardware capabilities:
-leftArm
- rightArm
- Added additional TJBot API (and supporting functions):
- tj.waveArms()
- tj.waveLeftArm()
- tj.waveRightArm()
- tj.leftArmBack()
- tj.rightArmBack()
- tj.raiseRightArm()
- tj.raiseLeftArm()
- tj.lowerLeftArm()
- tj.lowerRightArm()
- tj.recognize()
- tj.shineLeftRight()
- As original TJBot configuration, wired TJBot servo motor to PIN 26 (BCM 7) – Left Arm
- Wired a second servo motor to PIN 22 (BCM 25) – Right Arm
- Integrated @waugh code to support multiple LEDs and chained a second RGB LED (pay attention to LED pins layout. It can change!!!)
#Node-red nodes
Node-red updated nodes are available at https://github.com/fmanclossi/node-red-contrib-tjbotTwoArmsTwoLeds. These are just adaption from
P.S: In previous example, I also added (not integrated) a HC-SR04 Ultrasonic sensor and played with physical layout.
PPSS: I'm collected a presentation about TJBot and this task is born to support activities performed at I.I.S. Galileo Galilei di Crema (CR), a secondary state school with about 1,900 students aged 14-19 working in two fields of education: “Applied Sciences high school” and “Technological high school”.
Here are the STL - 3D printing - files for the 3 parts you need to change.
3D Printed TJBot from Aaron Cox
New - altered - parts shown in orange here.
You’ll need to be careful with your cables, so that the arm does not swing into them! The arm will swing in front of the cable exit so users will have to watch their HDMI cable - keep it elevated - so that the arm can clear it.
This project uses the Apache License Version 2.0 software license.