Servo8T Board - Communicating servo position

Started by Joe Rogers in BasicX12 years ago

I have not been able to find even one code sample for reading servo position. My best attempt is in the code snippet below but it just returns...

I have not been able to find even one code sample for reading servo position. My best attempt is in the code snippet below but it just returns 0 if I use data pins (Com3) for input and output. If I use Com1 (pins 1 and 2) it hangs indefinitely. Can anyone tell me what I'm doing wrong? Private InputBuffer(1 To 40) As Byte Private OutputBuffer(1 To 40) As Byte Public Function GetPosition(ByV


Problem with SCC communication

Started by Nathaniel Barshay in BasicX11 years ago 2 replies

I'm trying to get an Pololu Micro SCC (using the Mini SCC II equivalent communication protocol) to communicate with the Basic X. The com...

I'm trying to get an Pololu Micro SCC (using the Mini SCC II equivalent communication protocol) to communicate with the Basic X. The com requires non-inverted 8 bit packets with no parity and one stop bit. There are 3 packets to a message, Byte 1 is the start byte (FF), Byte 2 is the servo to change (00-FE), and byte three is the servo position (00 - FE). My code, from what I can glean fro...


need help!!! BasicX24p with Parallax Servo Controller

Started by pxhoberman in BasicX11 years ago 2 replies

I've inherited a project in which I have to use a BX24p to control some servos using a Parallax Servo Controller Rev B (PSC-B). The PSC-B's...

I've inherited a project in which I have to use a BX24p to control some servos using a Parallax Servo Controller Rev B (PSC-B). The PSC-B's default baud rate of 2400 is much too slow for the project, and I need to take advantage of the 'runtime selectable baud rate' to switch it to 38K4. My problem is that the PSC-B is operated with a single pin for serial I/O and the BX24p defines COM...


multitasking with sensors and servo motor

Started by sinsynplus in BasicX13 years ago

hi, i want to do an office chair which runs away from people therefore i'm using 5 sharp gp distance sensors for his eyes and one servo...

hi, i want to do an office chair which runs away from people therefore i'm using 5 sharp gp distance sensors for his eyes and one servo motor for steering and a dc motor for moving - more about this project see this link


Controlling Servos

Started by i_cohen in BasicX13 years ago 11 replies

I'm trying to control a servo and all I'm getting are slow steps; I want to create full, smooth and quick motion, what am I doing wrong? ...

I'm trying to control a servo and all I'm getting are slow steps; I want to create full, smooth and quick motion, what am I doing wrong? Thanks in advance, Idan


User Input.

Started by john762020 in BasicX13 years ago

Hi, I was wondering if anyone could help with the following. I am currently in the process of building a walking robot, I'm actually...

Hi, I was wondering if anyone could help with the following. I am currently in the process of building a walking robot, I'm actually working my way through Harprit Sandhu's book An Introduction to Robotics. I am using a BX-24 connected to a DS-RCBv2 Servo expansion board. I am able to communicate with all the servos so everything se


Hex

Started by Kenneth Smith in BasicX14 years ago 5 replies

I am wanting to send hexidecimal to a servo controller instead of the usual 1 to 255 decimal. Does anyone know if the Bx24 can do...

I am wanting to send hexidecimal to a servo controller instead of the usual 1 to 255 decimal. Does anyone know if the Bx24 can do this. I have searched thru the doc's and can not find any info. Thanks


Question about Interrupts

Started by naimead in BasicX13 years ago 9 replies

Hi guys, I have the following project:two basicX controlling the same servo motor.What i want to do is the second basicX to be able to...

Hi guys, I have the following project:two basicX controlling the same servo motor.What i want to do is the second basicX to be able to take control in any time.So how should i use the interrupts in this case? (I have never used this teqnique before so is there any examples you can point me to?) thanks


Basic X 24 With Parallax Servo Controller and TPA81

Started by ryan_autet in BasicX13 years ago

Hi Im wondering has any one out there ever tryed using the PSC with the Basic X 24? Im having some trouble getting them work togeither....

Hi Im wondering has any one out there ever tryed using the PSC with the Basic X 24? Im having some trouble getting them work togeither. Same With the Thermal Pix Aray. If any one has ever tryed to use these togiether please write me.


motors: how much power

Started by Michael Krause in BasicX11 years ago 4 replies

Hi, I'm trying to control a motor with the BX-24, but I'm not sure which motor to chose. The weight the motor needs to lift is about 500 g,...

Hi, I'm trying to control a motor with the BX-24, but I'm not sure which motor to chose. The weight the motor needs to lift is about 500 g, and it doesn't need to be lifted too fast. I thought of a servo motor, but I'm not not sure what specs. Can anybody help, or chip in some ideas? THanks, -Michael


DUAL SERVO HELP

Started by yirga10 in BasicX13 years ago 1 reply

THANKS FOR READING AND ANY HELP YOU CAN GIVE. I AM RUNING TWO SERVOS THROUGH AND OPTIC ISOLATOR. THE POTS HAVE BEEN NULLED...

THANKS FOR READING AND ANY HELP YOU CAN GIVE. I AM RUNING TWO SERVOS THROUGH AND OPTIC ISOLATOR. THE POTS HAVE BEEN NULLED OUT AT 1.5ms AND ACT PROPERLY WHEN ONLY ONE IS RUNNING THAT IS IT DOESN'T MOVE...BUT WHEN BOTH MOTORS ARE PLUGGED IN THEY BOTH RUN FAST AT THE 1


Serial communication problem

Started by "zack.nathan" in BasicX9 years ago 5 replies

Ok so basically i have built a robotic arm and would like to control it from the computer. I have done the application for the computer and it...

Ok so basically i have built a robotic arm and would like to control it from the computer. I have done the application for the computer and it works. I have also programmed the firmware for the bx-24 chip. However when i turn it on, all the servo's move so the arm looks like it is having a spasm. I dont know why this is. Could someone please check through it and tell me whats wrong, many thanks, z...


XbotX behaves oddly - seems to lock up one servo or the other

Started by #...@!%! Herzog in BasicX13 years ago 1 reply

Hi, I have a 'stock' XbotX (no modifications to the hardware or software) that I am having trouble with. First, I cannot...

Hi, I have a 'stock' XbotX (no modifications to the hardware or software) that I am having trouble with. First, I cannot seem to get the PHOTOVOIRE to function at all. I try darkened rooms and big light sources. How can I check that the Cadium Sulfide photoresi


Stepper VS Servo

Started by new in BasicX13 years ago 3 replies

Hey everyone ! I was just wondering, I'm using two KP4M2-008 stepper motors for a small robot my son and I are building, I...

Hey everyone ! I was just wondering, I'm using two KP4M2-008 stepper motors for a small robot my son and I are building, I finally got everything to work, including the IRsensor, and put it on the ground. I don't seem to be getting the kind of power( torque) I was hoping for ( Not even close ).


Minimal Circuit for BX-24

Started by "new...@rocketmail.com" in BasicX9 years ago 5 replies

I have tried to design a board that is very small. I'm trying to use a=20 RadioShack 276-148. This board is 1 =BE inch square. All power...

I have tried to design a board that is very small. I'm trying to use a=20 RadioShack 276-148. This board is 1 =BE inch square. All power and=20 sensors output will be done through male headers. This board has two=20 power sources. 9V Battery for the chip and 4 AA Batteries for servo's=20 or whatever.=20=20 I have a drawing in the photo area. I've included a link below (I hope=20 it w...


Pulsein pulseout jumpy

Started by mechatronicsccc in BasicX11 years ago 1 reply

I also using the BX24 for a mixer and failsafe for a battle bot. But it tends to be jumpy or jittery when the pulse in is not changing. Other...

I also using the BX24 for a mixer and failsafe for a battle bot. But it tends to be jumpy or jittery when the pulse in is not changing. Other then using 2 voltage regulators, One for the controler and reciver and the other for the servo. Would it be better to put fuzzy logic in the pulse out?? EX if pulsein is between .0014 and .0016 then pulseout = .0015 also Is there another pr...


Re: suggestions for servo motor/ CRUISE CONTROL

Started by Georgios in BasicX10 years ago

--- In b...@yahoogroups.com, "Denis Palmans" wrote: > > I'm TRYING TO BUILD A CRUISE CONTROL FOR YOUR CAR? USING BASICX TO CALCULATE...

--- In b...@yahoogroups.com, "Denis Palmans" wrote: > > I'm TRYING TO BUILD A CRUISE CONTROL FOR YOUR CAR? USING BASICX TO CALCULATE THROTTLE POSITION TO MAINTAIN SPEED? I DEVELOP THIS PROJECT AND HAVE OVERCOME SOME ISSUES.. BUT NOT FINISHED YET. IF YOU HAVE SAME PROJECT , I CAN SHARE KNOWLEDGE. THANKS YOU, LIAKOPOULOS GEORGE.


Best way to read RC receiver?

Started by nathanchronister in BasicX13 years ago 1 reply

Hello! Has anyone tried to read the signals from an RC airplane receiver? Currently I'm using an Al Williams PAK7...

Hello! Has anyone tried to read the signals from an RC airplane receiver? Currently I'm using an Al Williams PAK7 coprocessor to read each of the receiver outputs. Before that I had the BX reading the pulse widths from the individual servo outputs


Breaking out of subroutine?

Started by Michael Kemper in BasicX13 years ago 2 replies

I'm a bit of a newb, so here I go! I'm working on a simple robot that uses sonar to avoid objects. The sonar is mounted on...

I'm a bit of a newb, so here I go! I'm working on a simple robot that uses sonar to avoid objects. The sonar is mounted on a "turret servo" that looks around and sends the bot in the direction of the greatest distance using select case. I have a "


Is there a Multitasking Guide?

Started by cadurrans in BasicX12 years ago

hi, I started a project based upon the example but it just didn't work. The alternative using conventional routines in turn worked...

hi, I started a project based upon the example but it just didn't work. The alternative using conventional routines in turn worked without problem. Looking at a variety of sensors, for navigation, a goal that's guided by the sensors and motor control / servo output. I'm revisiting the idea of modules for each of the sensor type and drive but wondered if there is a better guide to multitas