Previous in Forum: Residual Current Device   Next in Forum: Net-metering
Close
Close
Close
10 comments
Rate Comments: Nested
Associate

Join Date: Mar 2007
Location: Texas
Posts: 42

Tmote for PWM

03/05/2007 11:54 AM

Hi,

Does anyone know if a Tmote Sky can output a PWM signal? If so, are there any issues with using it to control a 6V DC motor? I'm assuming that if the Tmote can give me the PWM signal, then I need to send that signal to an H-bridge with no other controller. Is that correct? Can anyone suggest an H-bridge for this application

- 6V @ 1A (max.)

- Brushed motor driver

- Support PWM signals (Frequency up to 20KHz)

- Ouput control modes: Forward, reverse, tri-state or open, brake (optional)

Thanks!

Register to Reply
Pathfinder Tags: mote motor control PWM
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Olde Member!! Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jul 2006
Location: Dunstable, England
Posts: 2821
Good Answers: 45
#1

Re: Tmote for PWM

03/05/2007 2:04 PM

What's a Tmote Sky ?????

__________________
A little knowledge is a dangerous thing - Googling is far worse!
Register to Reply
Power-User
United States - Member - New Member Fans of Old Computers - PDP 11 - New Member Hobbies - HAM Radio - New Member

Join Date: Jan 2005
Posts: 381
Good Answers: 8
#2
In reply to #1

Re: Tmote for PWM

03/05/2007 2:47 PM

It looks like its a single board computer for networking sensors. Some basic specs from the website: http://www.moteiv.com/products/tmotesky.php

  • 250kbps 2.4GHz IEEE 802.15.4 Chipcon Wireless Transceiver
  • Interoperability with other IEEE 802.15.4 devices
  • 8MHz Texas Instruments MSP430 microcontroller (10k RAM, 48k Flash)
  • Integrated ADC, DAC, Supply Voltage Supervisor, and DMA Controller
  • Integrated onboard antenna with 50m range indoors / 125m range outdoors
  • Optional Integrated Humidity, Temperature, and Light sensors
  • Ultra low current consumption
  • Fast wakeup from sleep (<6us)
  • Hardware link-layer encryption and authentication
  • Programming and data collection via USB
  • 16-pin expansion support and optional SMA antenna connector
  • TinyOS support : mesh networking and communication implementation
  • FCC modular certification : conforms to all US and Canada regulations

There's nothing here that says "PWM" to me, although you might be able to fake it with one of the DAC channels.

Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#3

Re: Tmote for PWM

03/05/2007 3:50 PM

Generally speaking, if it's programmable, you can program it for PWM. For instance, you can program PWM into a PIC microcontroller (I mean the ones that don't have the built-in PWM) and I've done motor controllers in FPGAs where I made a PWM circuit from counters. It's just a matter of setting a bit, counting out an on time, then reseting the bit and counting out an off time.

Your discrete I/O should be able to drive an H-Bridge of p and n channel FETs, but if you use a gate driver chip, you can use all n channel FETs, and get some extra builtin capabilities, like over current protection and dead time, which is what I prefer. But you can certainly do without. Check out the gate driver chips at www.irf.com for more details.

Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#4

Re: Tmote for PWM

03/06/2007 8:23 AM

Why not use one of the analog outputs and a National Semiconductor LMD18200 H-bridge?

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Associate

Join Date: Mar 2007
Location: Texas
Posts: 42
#5

Re: Tmote for PWM

03/07/2007 7:15 AM

Thanks for the responses. I'm trying to get some working knowledge of this, and every place I look either shows an h-bridge some hobbyist made, or h-bridge schematics.


So, I could output an analog voltage signal from the mote, and the h-bridge would use that signal? Can I use encoder feedback for speed control this way too?

Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#6
In reply to #5

Re: Tmote for PWM

03/07/2007 8:28 AM

Actually, I lied about the analog input and the National Semi LMD 18200 -- I got it confused with another device. To use the LMD 18200, you would have to supply PWM and direction signals from the Tmote, but it's got all the logic and power devices built into one package so that all you have to do is hook it up to a motor, Tmote, and a couple of capacitors.

Unfortunately, it isn't designed to take an encoder feedback. If speed is not a factor, perhaps the Tmote can read the encoder and close the loop that way.

Let me know if you want the data sheet on LMD18200.

P. S. There's lots of IC's, OEM boards, etc. to do what you want, but I assume you want to do this as inexpensively and easily as possible. Let me know if this ain't so.

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Associate

Join Date: Mar 2007
Location: Texas
Posts: 42
#7
In reply to #6

Re: Tmote for PWM

03/08/2007 10:08 AM

Does an H-bridge take a digital or analog signal, or does it vary? I think I can get either from the mote. Regarding the encoder, how else is speed control done without encoder feedback? I've been warned about using the encoder for speed control.

I'm understanding that there are lots of ways to do this which only makes it more complicated! We are looking to do it cheaply, but also within a small space.


Thanks.

Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#8
In reply to #7

Re: Tmote for PWM

03/08/2007 10:19 AM

A H-Bridge is just an arrangement of MOSFETs or bipolar transistors (or other switches). So the input signal is technically analog (driving the MOSFET gate, or bipolar base, or relay coil), but is often driven by a digital gate, depending on the amount of current required and the switching speed. The signal is digital in the sense that it's either ON or OFF. You want the switches in the H-Bridge to be either 100% ON or 100% OFF, and nothing in between. If your Tmote output is not sufficient, you can use a gate driver chip, a pullup resistor, a high output digital buffer, opto-isolator, opamp or another transistor to get the current/voltage that you need, again depending on how much current you need..

Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#9
In reply to #7

Re: Tmote for PWM

03/08/2007 10:52 AM

DomerDoc, This particular H-bridge (LMD18200) takes digital signals. Others, such as UC3637 in conjunction with an L298 can take an analog input. If you don't know much about electronics, I wouldn't recommend tackling this one, but it can be done with a little diligence.

Encoders measure rotation; they don't measure speed. Therefore, the number of counts (unit of rotation) must be measured in time to determine speed. Think of it as measuring the number of broken stripes driven past on the highway per minute to gauge the speed of your car. To start with, you won't know how fast you're going until a minute has passed, and in that length of time, your speed could have been checked by a cop with a radar gun and found to be way too fast! In the biz, it's called a "lag" in the control system.

A tachometer (which is just about the same as a DC motor, otherwise known as a DC generator) generates a voltage proportional to speed. Well, a DC motor pretty much runs at a speed proportional to applied voltage. Open-loop speed controllers try to hold applied voltage constant with a modifier for "IR" losses, called "IR Compensation." "IR" in this case means current (I) times resistance (R), and not InfraRed. As load on the motor increases, the armature current increases, and unless it's supercooled and made to be superconducting, the applied voltage, if held constant, will result in the motor slowing down. With IR compensation, the armature current is measured electronically and proportionally increases the applied voltage to try to maintain a constant speed. Since the speed is not measured directly, motor speed will be a function of the current feedback and motor characteristics. Most off-the-shelf motor speed controllers use this method and may be modified to match controller to motor within bounds.

Email me if you get desperate.

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Guru
Popular Science - Weaponology - New Member

Join Date: Feb 2006
Posts: 962
#10

Re: Tmote for PWM

03/10/2007 9:22 PM

I built a system to cotrol model trains from a few odd components lying around a 555 timer and some transistors plus a few caps and the odd resistor, it worked fine.

__________________
There's them that knows and them that just thinks they know, whitch are you? Stir the pot and see what rises up. I have catalytic properties I get a reaction going.
Register to Reply
Register to Reply 10 comments
Copy to Clipboard

Users who posted comments:

bhankiii (2); Bill (3); BrainWave (1); DomerDoc (2); Electroman (1); Steve (1)

Previous in Forum: Residual Current Device   Next in Forum: Net-metering

Advertisement