Wednesday, March 30, 2022
Dual 80x160 RGB LCD Robot eyes
Wednesday, March 23, 2022
Improved Arduino Robot Face on Parallel TFT LCD
Monday, March 21, 2022
Nokia 5110 Robot Face Eyes and Mouth
I thought I would try using a Nokia LCD for creating a face for my robot. However I was greatly disappointed. If you make his eyes white, then the border is also white. So I had to make his eyes black. The effect is not nearly as pronounced. As a result I only created two expressions for this LCD.
Here is the two faces:
Here is the code for those two faces.
Nokia 5110 LCD Robot Face
Many thankls to AdaFruit!
*********************************************************************/
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
// Software SPI (slower updates, more flexible pin options):
// pin 7 21- Serial clock out (SCLK)
// pin 6 20- Serial data out (DIN)
// pin 5 19- Data/Command select (D/C)
// pin 4 18- LCD chip select (CS)
// pin 3 17- LCD reset (RST)
//Adafruit_PCD8544 display = Adafruit_PCD8544(21, 20, 19, 18, 17);
Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);
void setup() {
display.begin();
display.setContrast(60); // Default is 50
display.clearDisplay(); // clears the screen and buffer
}
void loop() {
// draw big eyes and mouth
display.fillCircle(display.width()/6, display.height()/5, 10, BLACK);
display.fillCircle(display.width()/6*5, display.height()/5, 10, BLACK);
display.fillCircle(display.width()/4, display.height()-10, 10, BLACK);
display.fillCircle(display.width()/4*3, display.height()-10, 10, BLACK);
display.fillRect(display.width()/4, display.height()-20,display.width()/4*2,20, BLACK);
display.display();
delay(2000);
display.clearDisplay();
// draw eyes and mouth
display.fillCircle(display.width()/6, display.height()/5, 7, BLACK);
display.fillCircle(display.width()/6*5, display.height()/5, 7, BLACK);
display.fillCircle(display.width()/4, display.height()-10, 5, BLACK);
display.fillCircle(display.width()/4*3, display.height()-10, 5, BLACK);
display.fillRect(display.width()/4, display.height()-14,display.width()/4*2,10,BLACK);
display.display();
delay(2000);
display.clearDisplay();
}
Monday, March 7, 2022
I am Making my Third Humanoid Robot
I have started on making my third humanoid robot. This one is modeled after the EZ-Robot JD Humanoid. The issue with the larger humanoids is that their center of gravity is way too high. There is a two degree tolerance in each servo and that is amplified by the distance from the servo's. So in a humanoid that is over 16" tall the two degrees can amount to falling over frontwards or falling over backwards. That makes it really hard to write software for walking.
One solution is to make the robot shorter and to make the distance from each servo shorter. In the following picture there is a servo for the EZ_Robot on the left, for the Hadron Robot in the middle, and for the mechanical robot sold on eBay on hte right. The EZ-Robot assembly is so short that the ears need to be cut off the one end of the servo for it to work. The Hadron robot on the other hand is not much smaller than the mechanical version, it also is not quite square.