Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

RED LIGHT JUMPER 12 channel maestro pololu


#1

I have uploaded the script all like the tutorial but when i discconect form the pc and put the jumper there is a red light blinking and the script just runs 1 secs and loops forever.
But when I connect to the pc again it runs normally the complete script and the loops.
I am not sure it is even runing the script for 1 sec… it looks like miliseconds when i put the jumper…
What is wrong?


#2

Is very easy the problem:
I clicked the box for run script on startup … the script is laoded and appñlied settigns
I disconnect … I powersource everything
I connect the jumper …
The script works horrible … it only plays like 0.1 sec and stucks there

I connect it to the usb while like that … and it starts working again…
So it only works when plugged to the usb and to the pc…
Strange and the light red stops blinking


#3

I am using 4 MG995 servo and 1 DS04 servo continuos


#4

Hello.

I moved your post to the “Servo controllers and servos” section of the forum since it is more appropriate.

From your description, it sounds like a power issue. What are you using as a power supply?

Also, could you post your Maestro settings file? You can save your settings file by selecting the “Save settings file…” option within the “File” drop-down menu of the Maestro Control Center (while your Maestro is connected).

Brandon


#5
# WTFK
begin

11 get_position # get the value of IR Sensor
 512 less_than # test whether Sensor is low or high -> 1 if true, 0 if false

if
 0 0 speed #reset to starting speed
 0 1 speed #reset to starting speed

  500 256 256 0 0 0 0 
  0 0 0 0 0 0 frame_0..11 # Frame 0

  500 0 5976 6000 6000 6000 0 
  5679 0 0 0 0 0 frame_0..11 # Frame 0
  500 6988 4877 6959 4950 5726 frame_1..4_6 # Frame 1
  500 6797 5888 7046 frame_2..4 # Frame 2
  500 4877 4789 frame_2_4 # Frame 3


5 1 speed #speed changed before servo movement


  500 4554 3968 7882 4627 frame_1..4 # Frame 4
  500 4935 4950 3968 5243 frame_1..4 # Frame 5
  500 7472 8000 7134 7149 frame_1..4 # Frame 6
  500 4627 3968 4921 4525 frame_1..4 # Frame 7
  500 6607 6929 7442 7809 frame_1..4 # Frame 8
  500 4774 5786 4965 6293 frame_2..4_6 # Frame 9
  500 5316 5903 frame_2_4 # Frame 10
  500 6460 6299 frame_3_4 # Frame 11

100 0 speed #speed changed before servo movement
100 1 speed #speed changed before servo movement

  500 4466 5316 4686 frame_1_3_4 # Frame 12
  500 3968 3968 3968 3968 frame_1..4 # Frame 13
  500 8000 8000 8000 8000 frame_1..4 # Frame 14
  500 6064 frame_4 # Frame 15
  500 6049 frame_3 # Frame 16
  500 6005 frame_2 # Frame 17


10 0 speed #speed changed before servo movement
10 1 speed #speed changed before servo movement

  500 6064 6025 frame_1_6 # Frame 18
  500 delay # Frame 19
  500 5738 frame_6 # Frame 20
  500 6783 5712 6665 5610 frame_1..4 # Frame 21

100 0 speed #speed changed before servo movement
100 1 speed #speed changed before servo movement

  500 4539 4554 5639 4319 frame_1..4 # Frame 22
  500 5976 6000 6000 6000 5992 frame_1..4_6 # Frame 23
  500 6009 frame_6 # Frame 24



else
1000 delay

endif


repeat

sub frame_0..11
  11 servo
  10 servo
  9 servo
  8 servo
  7 servo
  6 servo
  5 servo
  4 servo
  3 servo
  2 servo
  1 servo
  0 servo
  delay
  return

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

sub frame_2..4
  4 servo
  3 servo
  2 servo
  delay
  return

sub frame_2_4
  4 servo
  2 servo
  delay
  return

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

sub frame_2..4_6
  6 servo
  4 servo
  3 servo
  2 servo
  delay
  return

sub frame_3_4
  4 servo
  3 servo
  delay
  return

sub frame_1_3_4
  4 servo
  3 servo
  1 servo
  delay
  return

sub frame_4
  4 servo
  delay
  return

sub frame_3
  3 servo
  delay
  return

sub frame_2
  2 servo
  delay
  return

sub frame_1_6
  6 servo
  1 servo
  delay
  return

sub frame_6
  6 servo
  delay
  return

It works when I connect the USB to a pwoer supply too.
So in order to work unpluged from the PC I have to power supply the pololu from 2 sources … the USB and the +, - of the pins …
Kind of strange


#6



0000:                      -- # WTFK
0000:                      -- begin
0000:                      -- 
0000: 020B2E               -- 11 get_position # get the value of IR Sensor
0003: 01000228             --  512 less_than # test whether Sensor is low or high -> 1 if true, 0 if false
0007:                      -- 
0007: 077501               -- if
000A: 040200002C           --  0 0 speed #reset to starting speed
000F: 040200012C           --  0 1 speed #reset to starting speed
0014:                      -- 
0014: 031AF401000100010000000000000000000000000000000000000000 --   500 256 256 0 0 0 0 
0030: 80                   --   0 0 0 0 0 0 frame_0..11 # Frame 0
0031:                      -- 
0031: 031AF4010000581770177017701700002F1600000000000000000000 --   500 0 5976 6000 6000 6000 0 
004D: 80                   --   5679 0 0 0 0 0 frame_0..11 # Frame 0
004E: 030CF4014C1B0D132F1B56135E1681 --   500 6988 4877 6959 4950 5726 frame_1..4_6 # Frame 1
005D: 0308F4018D1A0017861B82 --   500 6797 5888 7046 frame_2..4 # Frame 2
0068: 0306F4010D13B51283   --   500 4877 4789 frame_2_4 # Frame 3
0071:                      -- 
0071:                      -- 
0071: 040205012C           -- 5 1 speed #speed changed before servo movement
0076:                      -- 
0076:                      -- 
0076: 030AF401CA11800FCA1E131284 --   500 4554 3968 7882 4627 frame_1..4 # Frame 4
0083: 030AF40147135613800F7B1484 --   500 4935 4950 3968 5243 frame_1..4 # Frame 5
0090: 030AF401301D401FDE1BED1B84 --   500 7472 8000 7134 7149 frame_1..4 # Frame 6
009D: 030AF4011312800F3913AD1184 --   500 4627 3968 4921 4525 frame_1..4 # Frame 7
00AA: 030AF401CF19111B121D811E84 --   500 6607 6929 7442 7809 frame_1..4 # Frame 8
00B7: 030AF401A6129A166513951885 --   500 4774 5786 4965 6293 frame_2..4_6 # Frame 9
00C4: 0306F401C4140F1783   --   500 5316 5903 frame_2_4 # Frame 10
00CD: 0306F4013C199B1886   --   500 6460 6299 frame_3_4 # Frame 11
00D6:                      -- 
00D6: 040264002C           -- 100 0 speed #speed changed before servo movement
00DB: 040264012C           -- 100 1 speed #speed changed before servo movement
00E0:                      -- 
00E0: 0308F4017211C4144E1287 --   500 4466 5316 4686 frame_1_3_4 # Frame 12
00EB: 030AF401800F800F800F800F84 --   500 3968 3968 3968 3968 frame_1..4 # Frame 13
00F8: 030AF401401F401F401F401F84 --   500 8000 8000 8000 8000 frame_1..4 # Frame 14
0105: 0304F401B01788       --   500 6064 frame_4 # Frame 15
010C: 0304F401A11789       --   500 6049 frame_3 # Frame 16
0113: 0304F40175178A       --   500 6005 frame_2 # Frame 17
011A:                      -- 
011A:                      -- 
011A: 04020A002C           -- 10 0 speed #speed changed before servo movement
011F: 04020A012C           -- 10 1 speed #speed changed before servo movement
0124:                      -- 
0124: 0306F401B01789178B   --   500 6064 6025 frame_1_6 # Frame 18
012D: 01F40108             --   500 delay # Frame 19
0131: 0304F4016A168C       --   500 5738 frame_6 # Frame 20
0138: 030AF4017F1A5016091AEA1584 --   500 6783 5712 6665 5610 frame_1..4 # Frame 21
0145:                      -- 
0145: 040264002C           -- 100 0 speed #speed changed before servo movement
014A: 040264012C           -- 100 1 speed #speed changed before servo movement
014F:                      -- 
014F: 030AF401BB11CA110716DF1084 --   500 4539 4554 5639 4319 frame_1..4 # Frame 22
015C: 030CF4015817701770177017681781 --   500 5976 6000 6000 6000 5992 frame_1..4_6 # Frame 23
016B: 0304F40179178C       --   500 6009 frame_6 # Frame 24
0172:                      -- 
0172:                      -- 
0172:                      -- 
0172: 067901               -- else
0175: 01E80308             -- 1000 delay
0179:                      -- 
0179:                      -- endif
0179:                      -- 
0179:                      -- 
0179: 060000               -- repeat
017C:                      -- 
017C:                      -- sub frame_0..11
017C: 020B2A               --   11 servo
017F: 020A2A               --   10 servo
0182: 02092A               --   9 servo
0185: 02082A               --   8 servo
0188: 02072A               --   7 servo
018B: 02062A               --   6 servo
018E: 02052A               --   5 servo
0191: 02042A               --   4 servo
0194: 02032A               --   3 servo
0197: 02022A               --   2 servo
019A: 02012A               --   1 servo
019D: 02002A               --   0 servo
01A0: 08                   --   delay
01A1: 05                   --   return
01A2:                      -- 
01A2:                      -- sub frame_1..4_6
01A2: 02062A               --   6 servo
01A5: 02042A               --   4 servo
01A8: 02032A               --   3 servo
01AB: 02022A               --   2 servo
01AE: 02012A               --   1 servo
01B1: 08                   --   delay
01B2: 05                   --   return
01B3:                      -- 
01B3:                      -- sub frame_2..4
01B3: 02042A               --   4 servo
01B6: 02032A               --   3 servo
01B9: 02022A               --   2 servo
01BC: 08                   --   delay
01BD: 05                   --   return
01BE:                      -- 
01BE:                      -- sub frame_2_4
01BE: 02042A               --   4 servo
01C1: 02022A               --   2 servo
01C4: 08                   --   delay
01C5: 05                   --   return
01C6:                      -- 
01C6:                      -- sub frame_1..4
01C6: 02042A               --   4 servo
01C9: 02032A               --   3 servo
01CC: 02022A               --   2 servo
01CF: 02012A               --   1 servo
01D2: 08                   --   delay
01D3: 05                   --   return
01D4:                      -- 
01D4:                      -- sub frame_2..4_6
01D4: 02062A               --   6 servo
01D7: 02042A               --   4 servo
01DA: 02032A               --   3 servo
01DD: 02022A               --   2 servo
01E0: 08                   --   delay
01E1: 05                   --   return
01E2:                      -- 
01E2:                      -- sub frame_3_4
01E2: 02042A               --   4 servo
01E5: 02032A               --   3 servo
01E8: 08                   --   delay
01E9: 05                   --   return
01EA:                      -- 
01EA:                      -- sub frame_1_3_4
01EA: 02042A               --   4 servo
01ED: 02032A               --   3 servo
01F0: 02012A               --   1 servo
01F3: 08                   --   delay
01F4: 05                   --   return
01F5:                      -- 
01F5:                      -- sub frame_4
01F5: 02042A               --   4 servo
01F8: 08                   --   delay
01F9: 05                   --   return
01FA:                      -- 
01FA:                      -- sub frame_3
01FA: 02032A               --   3 servo
01FD: 08                   --   delay
01FE: 05                   --   return
01FF:                      -- 
01FF:                      -- sub frame_2
01FF: 02022A               --   2 servo
0202: 08                   --   delay
0203: 05                   --   return
0204:                      -- 
0204:                      -- sub frame_1_6
0204: 02062A               --   6 servo
0207: 02012A               --   1 servo
020A: 08                   --   delay
020B: 05                   --   return
020C:                      -- 
020C:                      -- sub frame_6
020C: 02062A               --   6 servo
020F: 08                   --   delay
0210: 05                   --   return
0211:                      -- 
0211:                      -- 

Subroutines:
Hex Decimal Address Name
00  000     017C    FRAME_0..11
01  001     01A2    FRAME_1..4_6
02  002     01B3    FRAME_2..4
03  003     01BE    FRAME_2_4
04  004     01C6    FRAME_1..4
05  005     01D4    FRAME_2..4_6
06  006     01E2    FRAME_3_4
07  007     01EA    FRAME_1_3_4
08  008     01F5    FRAME_4
09  009     01FA    FRAME_3
0A  010     01FF    FRAME_2
0B  011     0204    FRAME_1_6
0C  012     020C    FRAME_6

#7

Thank you for posting your script; however, it would still be more helpful if you could post your compete Maestro settings file, which you can get by following the instructions I posted.

I still suspect a power issue of some kind. Did you get the assembled or kit version of the 12-channel Mini Maestro?From your script it looks like you have a sensor involved too; could you answer my question about how you are powering everything (the Maestro, the servos, and your sensor)? Also, could you post some pictures of your setup that show all of your connections, as well as close-up pictures of the underside of your Maestro?

Brandon