Graves

Graves the butler will use 3 Arduinos and an Echo Dot to follow you with his head and flap his jaw at you.

Oct 7, 2018

939 views

1 respects

Components and supplies

2

Arduino UNO

1

Seeed TFT 2.8" v2

1

Arduino Mega 2560

5

HC-SR501 Passive Infrared Sensor

Tools and machines

1

Soldering iron (generic)

Project description

Code

very rough draft

c_cpp

first brainstorm as to how the code might come together

24102018 mouth code

c_cpp

New code for the mouth arduino is getting ready to accommodate a new button group and needs threshold adjustment for both graves and echo. new dc bias circuit built with proper resistors thus the need for code adjustment

25102018 night mega code PAGES UPDATED!!!

c_cpp

Man, that was tough! All pages updated and coupled to button groups. button groups updated to accommodate backlight timer adjustment

13102018 - Bodmer to the rescue!

c_cpp

Big shout out to Bodmer for helping identify my spotty understanding of data types. I had wrongly used int to store a millis() value and the prog would crash after a minute or two. changed them to unsigned longs and it chooches along flawlessly now! I was going to rewrite menus, but now I think I'll wait to establish communication from the mega to the dos uno's. I'll figure out what data I can pass back and forth before the menu rewrite. Thanks again, Bodmer!

19102018 they are playing well together

c_cpp

I updated dc bias circuit schematic. The uno mouth code is more or less done for now. It receives commands and echos back. It gives led fast or slow flash without using delay commands to signify if uno is executing functions or waiting for an on command. The single sound input will be relatively easy to duplicate for a second input for mouth movements. The second dc bias circuit is also ready along with a line tap wire made from a headphone/aux cord. The serial functions in this sketch are the same as the head sketch.

draft 12102018

c_cpp

latest update finished sorting out page navigation need to clean up colors and word positions will fill in data fetch later

24102018 mouth code

c_cpp

New code for the mouth arduino is getting ready to accommodate a new button group and needs threshold adjustment for both graves and echo. new dc bias circuit built with proper resistors thus the need for code adjustment

22102018 graves uno head code late night

c_cpp

head is tracking better. head on off function control from tft is successful! added ramped speeds to motor control. mostly debugged. needs a trim. could talk a bit more and use its outgoing skills.

22102018 graves uno head code

c_cpp

code for arduino uno that controls head movement

do you expect me to talk?

c_cpp

No! I expect you to communicate over simple tx/rx ports like you already know how...even though I don't.

12102018 later in the day

c_cpp

updated code again. this time with a back light time out. can't figure out why the screen paging program is failing after a minute or two while the back light timer continues. gonna post the code and ask for help.

buttons again

c_cpp

setup new buttons for slider and on off

24102018 Mega code

c_cpp

Screens partially updated. New button groups need adjustment to couple correct screen assignments.

22102018 graves mega master

c_cpp

code for arduino 2560 contols tft along with sending on off commands to head uno and mouth uno

button groups refined

c_cpp

this updated interface deals with changing button areas based on screen number

Torture works!

c_cpp

And by that, I mean I tortured myself for days trying to get the mega to talk to the uno... then to get the uno to listen... then to get the uno to get the right message without changing it all around just to f with me... then to get the uno to talk back... then to get the mega to listen and understand. it all comes down to two major headaches. by trying to shortcut some intermediate programming, a whole of problems opens up for folks with crap knowledge so far like me. Timing a delay to wait for a response and getting the character data type to work around ascii tables makes my brain hurt

draft 2

c_cpp

initial screen creation and menu build some tft tracking and display

22102018 graves uno mouth

c_cpp

uno code to sense sound and move mouth

do you expect me to talk?

c_cpp

No! I expect you to communicate over simple tx/rx ports like you already know how...even though I don't.

22102018 graves mega master

c_cpp

code for arduino 2560 contols tft along with sending on off commands to head uno and mouth uno

Torture works!

c_cpp

And by that, I mean I tortured myself for days trying to get the mega to talk to the uno... then to get the uno to listen... then to get the uno to get the right message without changing it all around just to f with me... then to get the uno to talk back... then to get the mega to listen and understand. it all comes down to two major headaches. by trying to shortcut some intermediate programming, a whole of problems opens up for folks with crap knowledge so far like me. Timing a delay to wait for a response and getting the character data type to work around ascii tables makes my brain hurt

draft 2

c_cpp

initial screen creation and menu build some tft tracking and display

25102018 night mega code PAGES UPDATED!!!

c_cpp

Man, that was tough! All pages updated and coupled to button groups. button groups updated to accommodate backlight timer adjustment

22102018 graves uno head code

c_cpp

code for arduino uno that controls head movement

button groups refined

c_cpp

this updated interface deals with changing button areas based on screen number

22102018 graves uno head code late night

c_cpp

head is tracking better. head on off function control from tft is successful! added ramped speeds to motor control. mostly debugged. needs a trim. could talk a bit more and use its outgoing skills.

draft 12102018

c_cpp

latest update finished sorting out page navigation need to clean up colors and word positions will fill in data fetch later

buttons again

c_cpp

setup new buttons for slider and on off

24102018 Mega code

c_cpp

Screens partially updated. New button groups need adjustment to couple correct screen assignments.

19102018 they are playing well together

c_cpp

I updated dc bias circuit schematic. The uno mouth code is more or less done for now. It receives commands and echos back. It gives led fast or slow flash without using delay commands to signify if uno is executing functions or waiting for an on command. The single sound input will be relatively easy to duplicate for a second input for mouth movements. The second dc bias circuit is also ready along with a line tap wire made from a headphone/aux cord. The serial functions in this sketch are the same as the head sketch.

22102018 graves uno mouth

c_cpp

uno code to sense sound and move mouth

very rough draft

c_cpp

first brainstorm as to how the code might come together

13102018 - Bodmer to the rescue!

c_cpp

Big shout out to Bodmer for helping identify my spotty understanding of data types. I had wrongly used int to store a millis() value and the prog would crash after a minute or two. changed them to unsigned longs and it chooches along flawlessly now! I was going to rewrite menus, but now I think I'll wait to establish communication from the mega to the dos uno's. I'll figure out what data I can pass back and forth before the menu rewrite. Thanks again, Bodmer!

12102018 later in the day

c_cpp

updated code again. this time with a back light time out. can't figure out why the screen paging program is failing after a minute or two while the back light timer continues. gonna post the code and ask for help.

Downloadable files

line level dc bias circuit

sound/speaker wires carry an alternating current from negative 5 volts to positive 5 volts. It's the negative voltage that would damage an arduino input. This circuit sends one speaker wire to ground and the other speaker wire goes in between two resistors on a steady 5 volt supply. The signal wire goes in between the resistors as well. The resistors I used were 10k Ohm. I tried 100k Ohm and immediately had signal issues. The 10uF 16v capacitor acts as a bit of a filter for the sound signal by sitting on the negative speaker wire.

line level dc bias circuit

Image

Comments

Only logged in users can leave comments

wyliejones

0 Followers

0 Projects

0