Notifications
Clear all

Turning Dalek into robot

37 Posts
7 Users
35 Likes
1,763 Views
rommudoh
(@rommudoh)
Member
Joined: 1 year ago
Posts: 32
Topic starter  

It worked perfectly fine so far. I was able to connect to my PlayStation Navigation Controller and added some simple commands. Next, I'll add the analog joystick to make it a bit smoother.

Here's a short demo:

 

I also had a closer look at the MPU6050, but it seems to not be of much use. I thought it had a compass or I could find out how many degrees the Dalek turned. But that seems to not be possible. I'll need a different sensor.

Current projects:
- Modding my Gameboy Advance SP
- Turning Dalek into robot
Finished projects:
- Talking plant monitor (ESP8266)
- Mail box monitor (ESP8266-01S)
Other devices:
- Raspberry Pi 4B 4GB running Home Assistant


   
primalbits reacted
ReplyQuote
rommudoh
(@rommudoh)
Member
Joined: 1 year ago
Posts: 32
Topic starter  

I ordered a few ToF I²C distance sensors to prevent collisions. So, I decided to redo the perfboard mini shield to add more JST sockets. This time, I'll use SMD resistors to save some space.

Here's the first idea how to place the sockets:

IMG 20230630 180216736 1

I even drew a small sketch for how to connect everything:

IMG 20230630 221528828 1

Here's the soldering so far, what's left are the connections for the shutdown pins, and the pins for plugging into the Arduino Mega:

IMG 20230630 211428622 1

A small comparison of old and new board:

IMG 20230630 211403293 1

I think this is a good improvement.

Current projects:
- Modding my Gameboy Advance SP
- Turning Dalek into robot
Finished projects:
- Talking plant monitor (ESP8266)
- Mail box monitor (ESP8266-01S)
Other devices:
- Raspberry Pi 4B 4GB running Home Assistant


   
primalbits reacted
ReplyQuote
rommudoh
(@rommudoh)
Member
Joined: 1 year ago
Posts: 32
Topic starter  

Here is the finished board, I'm using pins 34, 36, 38, and 40 for the enable/shutdown connection:

IMG 20230702 145617841
IMG 20230702 145604728

I also got my LSM303DLHC module, which I'll try to use as compass. I crimped a cable and soldered it to the module, plugging it into one of the I²C sockets:

IMG 20230702 144557262
IMG 20230702 144609982

It doesn't have a enable or shutdown pin, so pin 5 is left empty. It almost fits into the holes I drilled for the MPU6050, but I'll have to find a different location for it, because the magnet of the servo next to it interferes.

This aside, it works fine, when I keep it away from the servo. I also plugged in the HC05 module and it works perfectly:

IMG 20230702 144648398

I have to find a new way to hold the arduino in place, since the I²C sockets are in the way of the wirestrap I used before.

Next will be adding the ToF distance sensors and adding them to the code.

Current projects:
- Modding my Gameboy Advance SP
- Turning Dalek into robot
Finished projects:
- Talking plant monitor (ESP8266)
- Mail box monitor (ESP8266-01S)
Other devices:
- Raspberry Pi 4B 4GB running Home Assistant


   
ReplyQuote
rommudoh
(@rommudoh)
Member
Joined: 1 year ago
Posts: 32
Topic starter  

Another update! I finally decided how to install the ToF distance sensors. I drilled a three small holes in the front and rear, exactly the size of the sensors on the modules:

IMG 20230702 165259219
IMG 20230702 165312995
IMG 20230702 165436900

This modification is small enough to not disturb the overall look of the Dalek.

Here a look from inside. The fit is so tight that it holds without additional support:

IMG 20230702 165553673
IMG 20230702 165633476

The rear sensor had to be placed with a bit side offset, since there's a rib in the middle. For the rear sensor, I also drilled a small hole for the cables:

IMG 20230702 165643860

The front ones could be routed through the existing holes. After soldering the wires, I added a bit of hot glue to keep it safe:

IMG 20230702 174350089

I know I could have Daisy-chained them, but decided to keep the wiring separated, to stay flexible, and I need separate shutdown wires anyway, to set the I²C address during the setup function, since those modules don't have persistent configs.

Current projects:
- Modding my Gameboy Advance SP
- Turning Dalek into robot
Finished projects:
- Talking plant monitor (ESP8266)
- Mail box monitor (ESP8266-01S)
Other devices:
- Raspberry Pi 4B 4GB running Home Assistant


   
primalbits reacted
ReplyQuote
rommudoh
(@rommudoh)
Member
Joined: 1 year ago
Posts: 32
Topic starter  

I had to move my projects away, since we had some guests, and I was distracted by some side-projects involving retro game consoles (creating a USB-C PD power supply for Nintendo 64, cleaning and taking care of the lithium batteries in a collection of handhelds, modding my Gameboy Advance SP). So I didn't have a lot of time to work on my Dalek. But still, I wanted to give a brief update.

I found a power switch that fitted almost perfectly into the opening for the original switch, only had to scrape a tiny amount of plastic at the side:

IMG 20230809 122238962
IMG 20230809 122151897

I placed it in the positive cable from the BMS.

Also, I did a few test runs and modified my code to initialize the DoF sensors correctly and assign a unique ID to each. Sadly, the compass module seems to be defective, one axis always returns -4096. I might have to get a replacement, or live without. Here is my test setup with motors not connected:

IMG 20230804 201450398

There were no batteries inserted, and maybe I should rethink my cable management...

Current projects:
- Modding my Gameboy Advance SP
- Turning Dalek into robot
Finished projects:
- Talking plant monitor (ESP8266)
- Mail box monitor (ESP8266-01S)
Other devices:
- Raspberry Pi 4B 4GB running Home Assistant


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

@rommudoh

The last pic looks as if its been in the first Dalek war and the good Doctor came out on top 😀.  But I expect it will soon be ready for the next galactic battle. (better get the compass sorted though)

 


   
rommudoh reacted
ReplyQuote
primalbits
(@primalbits)
Member
Joined: 8 months ago
Posts: 10
 

@rommudoh

That's great! I love the use of the PS controller. I have a similar setup with an R2D2 droid and a Xbox 360 controller.

Tim


   
rommudoh reacted
ReplyQuote
Page 3 / 3