Let's Make Robots!

pwm

A stepper motor driver where a dsPIC33 both monitors the current and controls the PWM via an L298N.
A few years ago I started building stepper motor drivers.  First it was a simple unipolar driver.  My motors wouldn't rotate faster than 1 to 2 rps.  So I … Read more

What happens if higher freq PWM is given as servo input

Ak's picture

Has anyone tried giving a 5mS or 10mS (or lower freq - 40mS or 80mS) time period PWM signal to a hobby servo rated to work with a 20mS PWM siglan input...

What I am trying to ask.. Is there any way to give a higher (or lower like 25Hz) frequency PWM input signal to a servo...?

I dont have a servo with me right now or I would have tried it my self.. But Im guessing the servo jitters... If so why..?

Need to setup TIMER3 on Mega to higher frenquency PWM

I need to set TIMER3, controlling pins 2 and 3 on an Arduino Mega to either fast PWM mode (acceptable) or faster (higher frequency)(preferable).

I use this PWM to control an audio signal through a Silonex light sensitive resistor/LED unint and some audio contamination can be heard because of the speed at which the Silonex reacts. I used TIMER0 in tests with a prescaler of 1 and it works OK. But TIMER1 is "fast" PWM and TIMER3 is "phase correct".

Real-time enough? About PWMs and shaky servos

AndreyNech's picture

We are currently working on the next incarnation of our software and hardware platform for vehicles controlled over the Internet. Among others, we decide to investigate the way to control our robot without micro-controllers. In fact, BeagleBoard has a lot of GPIOs available. In addition, three hardware PWM generators and I2C bus should be enough at least to control the tank with camera, compass, GPS, and sonar.

Embedded video: 
How to use timer and interrupts on Arduino boards.
This tutorial shows the use of timers and interrupts for Arduino boards. As Arduino programmer you will have used timers and interrupts without knowledge, bcause … Read more

Rover 5 - 4 Channel Motor Controller: PWM Frequency

I just got hold of OddBot's Rover 5 platform and the 4-Channel Motor Controller.  I'm still fairly new to all this and I'm not sure what PWM frequency to use for the controller.  The datasheet that I have doesn't specify so I'd appreciate any advice you can give me.

Many thanks.

Electric braking

MG2R's picture

I'm working on an RC car and was thinking about the braking. The idea is: I'm driving at full speed and need to turn. Obviously, because my car is going to break the land speed limits ( ;) ), it cannot take the turn at full speed so I'll need to slow down. Now, just releasing the throttle won't be enough, so I'll have to brake extra somehow. I was thinking about giving slight reverse throttle, so that with PWM, I can handle the braking intensity. Now I don't know what this would mean current-wise.

How to use HPWM for picaxe chips.

voodoobot's picture

This information is based on the chip that is used for the 20x2(PIC18F14K22) To get a better understanding of the modes, I suggest referencing this datasheet for further information on the chips features. IMages and info are referenced from both the picaxe 2 manual and the PIC datasheet for the above mentioned chip.

HPWM, what is it?

PWM IC simulation.....

please i need the library and model of sg3524, sg3525 sg2525

 

i need to simulate this IC...for motor driving, i cant jump directly on miCro controllinG...

Airship differential steering troubles

HugoPimm's picture

Hi all,

I'm faced with a problem - some friends and I are building a semi-autonomous airship (only a little one) and I've been given the electronics and programming to do, but I'm having trouble getting the pwm commands to work properly.

I'm using a little joystick with 2 pots to control it, the y-direction one controls the overall speed and direction of both motors and the x-direction one puts a left/right bias on them to turn the thing.

Here's the bit of test code I've got with just the one pot being used

[code]

symbol zero1 = b1

symbol zero2 = b2

High Current Motor Control with Arduino

Hi All,

Please excuse the commercial but I wanted to let you all know about our new motor control shield for Arduino.  It is called the MegaMoto and is designed for motors from 7V to 28V and up to 13A continuous current.  A peak of >30A for a short time has been demonstrated.  The unit is fully protected against thermal and current overloads.

I'm sure many users would like to be able to control something larger than the tiny motors you can drive with the L298 etc.

Navigate and avoids obstacles
Using a
A robotic platform far various experiments related to this field and to teach my kid some things about robotics. It's 16 years since I have build my first robot and … Read more

FLEXEL-1 PWM Question

RichardInVA's picture

Have any of you tried to enter a PWM value outside of the 500 to 2500 ms range for configuration 1 (RC Servo) on the FLEXEL-1 chip?  I would like to drive a couple of L298's with this and would like to have the full range of duty cycle.  Do values outside of the 500 to 2500ms throw an error?

Fades and flashes and keeps away the closet monster
Insired by Geir Andersen's RGB Nightlight, I thought I'd build one for my daughter. She's just started having nightmares (she's 3 years old) and wants the lights … Read more

Picaxe :- Pwm motor controlling and servo scanning

Gareth's picture

I wish to connect 1 or more servos to a picaxe 28x1 .......with 2 motors controlled by pwm

So Far :-

I have managed to get two motors working with pwm control . (jumps on table in amazement - its my first picaxe enterprise)

I have used pins 12(pwm 1) and 13(pwm 2) for the motor control (with output 7,6,5,4 for direction ie via an Ld293 chip)

using  pwmout ....... pwmduty commands - works well.........

Autonomus bot, navigates around using IR detector. It scouts, it looks, it finds!
Using a
  This is really Scout_bot version 2.0. I added the pan tilt head (Robotshop.ca) later. Anyways it adds some personality. He is built on  an old telephone base … Read more
tfx's picture

Line follower project

Hi guys, I'm working to build a linefollower robot to compete in both linefollowing and maze solving contests, but I've a few questions and problems I hope you could help me resolve.

MOTORS:

Well, the first problem are the motors. At the beginning I was using two 3v - 6v motors and this worked fine, but I had to duplicate the H-Bridge chip on my Picaxe 28X1 Started Pack due to the high amperage they required.

Geir's RGB night light was such an inspiration I just had to make my own.  Instead of Picaxes I decided to use ATTiny 2313. At first I tried to program it with C … Read more

ADC and PWM

MG2R's picture

Hi guys,

I've finally found time to test te ADC and PWM capabillities of my picaxe microcontroller :)

Sorry for my bad english, but I'm a little bit tired ;)

 

EDIT:

added an SRF05 ultrasound sensor for some cool FX ;)

Embedded video: 

Yet another PWM Picaxe question

rik's picture

I am programming my Mr Basic with Mr Basic moron driver. I use a Picaxe 28x1. It is a very basic setup indeed, with a small servo carrying a sharp IR distance sensor.

After reading many pages of manuals and LMR and example code of other victims, I ran into a wall. It's the dreaded "PWM and servopos don't mix" wall on picaxes.

This project is my very first robot project. It has a cybot foot base with 2 DC-motors and 1 wheel in front. I use an Arduino processor as his "brain". For now my … Read more

Arduino PWM output frequencies and Tone command

OddBot's picture

I've been playing with a new oscilloscope Dagu bought after the old one died. I decided to check out the Arduino PWM outputs because I'm using an Arduino in my new speed controller and wanted to check if there were any differences as the brake function requires two PWM outputs to be be in sync so that both input are high or low at the same time.

The PWM outputs on pins 5 and 6 share a timer with timing functions such as millis() and delay() run at about 976Hz while PWM outputs on pins 3,9,10 and 11 run at about 488Hz.

AVR C is hard!

kitsu.eb's picture

Well, last week I got several packages of parts with lots of sets of ten. I got ten 8pin sockets, ten CR2032 batteries and ten battery holders, and most importantly ten attiny85 MCUs. I figure I can use this set of parts for a bunch of small projects, but my first project is to make a tiny bot! I've already got some tiny pager motors, and some ir emitters I can use as light sensors.

TLC5940 anyone?

Aniss1001's picture
Allthough these chips are actually called LED drivers they are apparently capable of controlling servos...up to 16 of them :) There is even an Arduino library available for doing so. Pretty cool stuff. But I was wondering if anyone has any experiences with this? If yes then I'd like to know more about it. If not well then consider this a tip to keep in mind the next time you run out of servo pins ;)

Software PWM

wolfc's picture

I was hoping to avoid wrighting my own software pwm for the pic but it looks like i've arrived there.  the motors and tracks I hot glued toghther don't drive straigh so the only way I can think of fixing it is to use PWM to slow down one motor.  I know I could use the one hardware pwm to slow down just one motor but thats going to be used in the future for somthing else so I have to create the pwm myself in software.

this would be your first chip
IntroductionMany circuits, precooked or home made, deal with time related issues and many of those are dealt with by this IC: The *555* IC. It comes in many shapes … Read more
rik's picture