Jump to content

Trash Master Robot Type 2, New functions & Program


robothut

Recommended Posts

Mechanical , cosmetic and programing changes. 

First I added a mouth detail to help look of the head Pop a bit more.

I added a Hip Servo so that I can control the Tilt of the body.

I added the new battery door latch system.

I made a new program that makes use of the robot functions in a more entertaining way.

Now the robot starts by looking Left and right and Up and Down with a new light sequencing. The the robot take 3 steps does short Look around and then walks as its looking lef and right.

 

Link to comment
Share on other sites

The Pololu controller code can be loaded as a TEXT file. So if any of you want to build the robot but do not like coding then just copy and past this code to the Pololu maestro 6 unit.

<!--Pololu Maestro servo controller settings file, http://www.pololu.com/catalog/product/1350-->
<UscSettings version="1">
  <NeverSuspend>false</NeverSuspend>
  <SerialMode>UART_FIXED_BAUD_RATE</SerialMode>
  <FixedBaudRate>9600</FixedBaudRate>
  <SerialTimeout>0</SerialTimeout>
  <EnableCrc>false</EnableCrc>
  <SerialDeviceNumber>12</SerialDeviceNumber>
  <SerialMiniSscOffset>0</SerialMiniSscOffset>
  <Channels ServosAvailable="6" ServoPeriod="156">
    <!--Period = 19.968 ms-->
    <!--Channel 0-->
    <Channel name="Legs" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="34" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 1-->
    <Channel name="Tilt" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="34" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 2-->
    <Channel name="Neck" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="25" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 3-->
    <Channel name="LED 1" mode="Output" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 4-->
    <Channel name="LED 2" mode="Output" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 5-->
    <Channel name="LED3" mode="Output" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
  </Channels>
  <Sequences>
    <Sequence name="Sequence 0">
      <Frame name="Frame 0" duration="500">6003 6121 6003 3986 3986 3986</Frame>
      <Frame name="Frame 1" duration="300">6003 7295 8000 3986 8000 3986</Frame>
      <Frame name="Frame 2" duration="300">6003 7295 8000 7863 3986 3986</Frame>
      <Frame name="Frame 3" duration="300">6003 7295 8000 3986 8000 3986</Frame>
      <Frame name="Frame 4" duration="300">6003 7295 3968 3986 3986 8000</Frame>
      <Frame name="Frame 5" duration="300">6003 7295 3968 8000 3986 3986</Frame>
      <Frame name="Frame 6" duration="300">6003 7295 3968 3986 3986 8000</Frame>
      <Frame name="Frame 7" duration="300">6003 4887 8000 3986 8000 3986</Frame>
      <Frame name="Frame 8" duration="300">6003 4887 8000 8000 3986 3986</Frame>
      <Frame name="Frame 9" duration="300">6003 4887 8000 3986 8000 3986</Frame>
      <Frame name="Frame 10" duration="300">6003 4887 3968 3986 3986 8000</Frame>
      <Frame name="Frame 11" duration="300">6003 4887 3968 8000 3986 3986</Frame>
      <Frame name="Frame 12" duration="300">6003 4887 3968 3986 7980 3986</Frame>
      <Frame name="Frame 13" duration="300">6003 6121 6003 8000 3986 3986</Frame>
      <Frame name="Frame 14" duration="700">8000 6688 6003 8000 3986 3986</Frame>
      <Frame name="Frame 15" duration="1000">3987 5455 6003 8000 3986 3986</Frame>
      <Frame name="Frame 16" duration="1000">7921 6727 6003 8000 3986 3986</Frame>
      <Frame name="Frame 17" duration="1000">3987 5455 6003 8000 3986 3986</Frame>
      <Frame name="Frame 18" duration="1000">7921 6727 6003 8000 3986 3986</Frame>
      <Frame name="Frame 19" duration="1000">3987 5455 6003 8000 3986 3986</Frame>
      <Frame name="Frame 20" duration="1000">6003 6121 6003 8000 3986 3986</Frame>
      <Frame name="Frame 21" duration="300">6003 7295 8000 3986 8000 3986</Frame>
      <Frame name="Frame 22" duration="300">6003 7295 8000 7863 3986 3986</Frame>
      <Frame name="Frame 23" duration="300">6003 7295 8000 3986 8000 3986</Frame>
      <Frame name="Frame 24" duration="300">6003 7295 3968 3986 3986 8000</Frame>
      <Frame name="Frame 25" duration="300">6003 7295 3968 8000 3986 3986</Frame>
      <Frame name="Frame 26" duration="300">6003 7295 3968 3986 3986 8000</Frame>
      <Frame name="Frame 27" duration="300">6003 4887 8000 3986 8000 3986</Frame>
      <Frame name="Frame 28" duration="300">6003 4887 8000 8000 3986 3986</Frame>
      <Frame name="Frame 29" duration="300">6003 4887 8000 3986 8000 3986</Frame>
      <Frame name="Frame 30" duration="300">6003 4887 3968 3986 3986 8000</Frame>
      <Frame name="Frame 31" duration="300">6003 4887 3968 8000 3986 3986</Frame>
      <Frame name="Frame 32" duration="300">6003 7295 8000 3986 8000 3986</Frame>
      <Frame name="Frame 33" duration="700">7921 6727 8000 8000 3986 3986</Frame>
      <Frame name="Frame 34" duration="1400">3987 5455 3968 8000 3986 3986</Frame>
      <Frame name="Frame 35" duration="1400">7921 6727 8000 8000 3986 3986</Frame>
      <Frame name="Frame 36" duration="1400">3987 5455 3968 8000 3986 3986</Frame>
      <Frame name="Frame 37" duration="1400">6003 6121 6003 8000 3986 3986</Frame>
    </Sequence>
  </Sequences>
  <Script ScriptDone="false"># Sequence 0
begin
  500 6003 6121 6003 3986 3986 3986 frame_0..5 # Frame 0
  300 7295 8000 8000 frame_1_2_4 # Frame 1
  300 7863 3986 frame_3_4 # Frame 2
  300 3986 8000 frame_3_4 # Frame 3
  300 3968 3986 8000 frame_2_4_5 # Frame 4
  300 8000 3986 frame_3_5 # Frame 5
  300 3986 8000 frame_3_5 # Frame 6
  300 4887 8000 8000 3986 frame_1_2_4_5 # Frame 7
  300 8000 3986 frame_3_4 # Frame 8
  300 3986 8000 frame_3_4 # Frame 9
  300 3968 3986 8000 frame_2_4_5 # Frame 10
  300 8000 3986 frame_3_5 # Frame 11
  300 3986 7980 frame_3_4 # Frame 12
  300 6121 6003 8000 3986 frame_1..4 # Frame 13
  700 8000 6688 frame_0_1 # Frame 14
  1000 3987 5455 frame_0_1 # Frame 15
  1000 7921 6727 frame_0_1 # Frame 16
  1000 3987 5455 frame_0_1 # Frame 17
  1000 7921 6727 frame_0_1 # Frame 18
  1000 3987 5455 frame_0_1 # Frame 19
  1000 6003 6121 frame_0_1 # Frame 20
  300 7295 8000 3986 8000 frame_1..4 # Frame 21
  300 7863 3986 frame_3_4 # Frame 22
  300 3986 8000 frame_3_4 # Frame 23
  300 3968 3986 8000 frame_2_4_5 # Frame 24
  300 8000 3986 frame_3_5 # Frame 25
  300 3986 8000 frame_3_5 # Frame 26
  300 4887 8000 8000 3986 frame_1_2_4_5 # Frame 27
  300 8000 3986 frame_3_4 # Frame 28
  300 3986 8000 frame_3_4 # Frame 29
  300 3968 3986 8000 frame_2_4_5 # Frame 30
  300 8000 3986 frame_3_5 # Frame 31
  300 7295 8000 3986 8000 frame_1..4 # Frame 32
  700 7921 6727 8000 3986 frame_0_1_3_4 # Frame 33
  1400 3987 5455 3968 frame_0..2 # Frame 34
  1400 7921 6727 8000 frame_0..2 # Frame 35
  1400 3987 5455 3968 frame_0..2 # Frame 36
  1400 6003 6121 6003 frame_0..2 # Frame 37
repeat

sub frame_0..5
  5 servo
  4 servo
  3 servo
  2 servo
  1 servo
  0 servo
  delay
  return

sub frame_1_2_4
  4 servo
  2 servo
  1 servo
  delay
  return

sub frame_3_4
  4 servo
  3 servo
  delay
  return

sub frame_2_4_5
  5 servo
  4 servo
  2 servo
  delay
  return

sub frame_3_5
  5 servo
  3 servo
  delay
  return

sub frame_1_2_4_5
  5 servo
  4 servo
  2 servo
  1 servo
  delay
  return

sub frame_1..4
  4 servo
  3 servo
  2 servo
  1 servo
  delay
  return

sub frame_0_1
  1 servo
  0 servo
  delay
  return

sub frame_0_1_3_4
  4 servo
  3 servo
  1 servo
  0 servo
  delay
  return

sub frame_0..2
  2 servo
  1 servo
  0 servo
  delay
  return

</Script>
</UscSettings>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies to improve your visit. If you're happy with this, please continue.