<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: pwm voltage from 3.3v to 5 V to run sabertooth motor controller</title>
		<link>http://forums.leaflabs.com/topic.php?id=1031</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:07:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1031" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "pwm voltage from 3.3v to 5 V to run sabertooth motor controller"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1031#post-6344</link>
			<pubDate>Wed, 14 Sep 2011 11:49:05 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">6344@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;becker -&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;A rarely-considered level converter is a gate driver. There are inexpensive, and can output high current at 20V or even 30V if needed.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Good point. I agree they are rarely considered (I forgot in this case), are reasonably low-cost, provide some isolation between input and output, and do make good singe-direction level converters. As you point out, they are good for more than 3.3V to 5V.&#60;br /&#62;
For example&#60;br /&#62;
&#60;a href=&#34;http://uk.farnell.com/mosfet-drivers&#34; rel=&#34;nofollow&#34;&#62;http://uk.farnell.com/mosfet-drivers&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://uk.rs-online.com/web/c/semiconductors/power-management/mosfet-power-drivers/?searchTerm=MOSFET+driver&#38;amp;sort-by=P_breakPrice1&#38;amp;sort-order=asc&#38;amp;sort-option=Price&#38;amp;applied-dimensions=4294880203&#38;amp;lastAttributeSelectedBlock=Number%20of%20Drivers&#34; rel=&#34;nofollow&#34;&#62;http://uk.rs-online.com/web/c/semiconductors/power-management/mosfet-power-drivers/?searchTerm=MOSFET+driver&#38;amp;sort-by=P_breakPrice1&#38;amp;sort-order=asc&#38;amp;sort-option=Price&#38;amp;applied-dimensions=4294880203&#38;amp;lastAttributeSelectedBlock=Number%20of%20Drivers&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Some of them come in DIP packages, so they can be used to breadboard a solution, for example some of these are in DIP packages:&#60;br /&#62;
&#60;a href=&#34;http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=9010&#38;amp;mid=11&#34; rel=&#34;nofollow&#34;&#62;http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=9010&#38;amp;mid=11&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It is worth noting that they need to be powered from the higher voltage, e.g. 5V and not 3.3V.&#60;/p&#62;
&#60;p&#62;I am tinkering around with my own 3A+ two DC motor/1 stepper motor drive (directly driven from the Maple, no other processor), so I'll be interested in experience with the sabertooth.&#60;/p&#62;
&#60;p&#62;[In this case specific case, I'd be tempted to connect directly, with a pull-up resistor, or use a $0.20 74HCT buffer/logic chip.]&#60;/p&#62;
&#60;p&#62;(full disclosure: I am not a member of LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>becker on "pwm voltage from 3.3v to 5 V to run sabertooth motor controller"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1031#post-6332</link>
			<pubDate>Tue, 13 Sep 2011 14:04:18 +0000</pubDate>
			<dc:creator>becker</dc:creator>
			<guid isPermaLink="false">6332@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;This controller appears to be a standard microcontroller generating a 32KHz PWM output.  It's almost certain that it will accept a 3.3V input as a valid input level.&#60;/p&#62;
&#60;p&#62;A rarely-considered level converter is a gate driver.  There are inexpensive, and can output high current at 20V or even 30V if needed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "pwm voltage from 3.3v to 5 V to run sabertooth motor controller"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1031#post-6305</link>
			<pubDate>Mon, 12 Sep 2011 06:46:28 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">6305@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;jonsrr - I looked at a sabertooth motor controller at &#60;a href=&#34;http://www.dimensionengineering.com/sabertooth2x5.htm&#34; rel=&#34;nofollow&#34;&#62;http://www.dimensionengineering.com/sabertooth2x5.htm&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There don't appear to be any outputs back from the sabertooth controller to the microcontroller.&#60;br /&#62;
So there doesn't seem to be any need to step a signal down from 5V to 3.3V.&#60;br /&#62;
It appears you only need to step up from 3.3V to 5V.&#60;br /&#62;
So you don't need anything like a Sparkfun logic level converter, which is designed to connect in 5V to 3.3V in either direction.&#60;/p&#62;
&#60;p&#62;As crenn says, you could drive the signal directly.&#60;/p&#62;
&#60;p&#62;There are a bunch of Maple output pins which are '5V tolerant'. That means they can be connected to 5V.&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/hardware/maple.html#master-pin-map&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/hardware/maple.html#master-pin-map&#60;/a&#62;&#60;br /&#62;
For example the pin-map says D5 to D9 are 5V tolerant, and have timer outputs on them.&#60;br /&#62;
These pins can be pulled up to 5V with a resistor connected from the pin to 5V. &#60;/p&#62;
&#60;p&#62;The pinMode for the pin will need to be PWM_OPEN_DRAIN&#60;br /&#62;
NEVER use any other pin mode.&#60;/p&#62;
&#60;p&#62;When the PWM signal is low (0), the pin pulls the voltage down (so use a 1K+ pull-up resistor so that the pin can drive the signal, I'd probably use 2.2K), and when the PWM signal is high (1), the output pin is high-impedance, and is pulled up to 5V by the resistor.&#60;br /&#62;
Job done.&#60;br /&#62;
Total cost about $0.02, and you may be able to find the parts locally.&#60;/p&#62;
&#60;p&#62;A disadvantage of using a pull-up resistor is the rise time is a bit slower than actively driving the signal. There isn't enough data on the sabertooth data sheet I looked at, so maybe ask them. It isn't likely an issue if you are running PWM at 1KHz.&#60;/p&#62;
&#60;p&#62;So another way is to use 74HCT logic gates. They are specified to translate lower input voltages (2.4V = logic high) to 5V outputs:&#60;br /&#62;
&#60;a href=&#34;http://en.wikipedia.org/wiki/Logic_family&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/Logic_family&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Any 74HCT logic will trigger from the 3.3V-logic outputs of the Maple, and drive a 5V signal.&#60;br /&#62;
So for example almost any of these could be used:&#60;br /&#62;
&#60;a href=&#34;http://uk.rs-online.com/web/c/semiconductors/standard-speciality-logic/buffer-line-driver/?sort-by=P_breakPrice1&#38;amp;sort-order=asc&#38;amp;view-type=Grid&#38;amp;applied-dimensions=4294825665&#38;amp;lastAttributeSelectedBlock=Range&#38;amp;sort-option=Price&#34; rel=&#34;nofollow&#34;&#62;http://uk.rs-online.com/web/c/semiconductors/standard-speciality-logic/buffer-line-driver/?sort-by=P_breakPrice1&#38;amp;sort-order=asc&#38;amp;view-type=Grid&#38;amp;applied-dimensions=4294825665&#38;amp;lastAttributeSelectedBlock=Range&#38;amp;sort-option=Price&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;or if you are in the USA, try digikey.com  or mouser for 74HCT parts, e.g.&#60;br /&#62;
&#60;a href=&#34;http://www2.mouser.com:80/Semiconductors/Logic-ICs/Buffers-Line-Drivers/_/N-50nah?Keyword=74hct&#38;amp;FS=True&#38;amp;Ns=Pricing%7C0&#34; rel=&#34;nofollow&#34;&#62;http://www2.mouser.com:80/Semiconductors/Logic-ICs/Buffers-Line-Drivers/_/N-50nah?Keyword=74hct&#38;amp;FS=True&#38;amp;Ns=Pricing%7C0&#60;/a&#62;&#60;br /&#62;
There are buffers which will do the job, but literally anything will work. So gates can be used&#60;br /&#62;
&#60;a href=&#34;http://www2.mouser.com:80/Semiconductors/Integrated-Circuits-ICs/Logic-ICs/Gates-AND-NAND-OR-NOR/_/N-6j787?P=1z0y244Z1z0yhhsZ1z0y3wa&#38;amp;Ns=Pricing%7c0&#38;amp;FS=True&#34; rel=&#34;nofollow&#34;&#62;http://www2.mouser.com:80/Semiconductors/Integrated-Circuits-ICs/Logic-ICs/Gates-AND-NAND-OR-NOR/_/N-6j787?P=1z0y244Z1z0yhhsZ1z0y3wa&#38;amp;Ns=Pricing%7c0&#38;amp;FS=True&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There are single input buffers, but logic gates work fine too, wire the inputs together. Cost about $0.20.&#60;br /&#62;
Connect the input to the PWM pin without any pull-up resistor, and the output to the sabertooth.&#60;br /&#62;
In this case, the pinMode will be PWM because the pin is driving both high and low.&#60;/p&#62;
&#60;p&#62;(full disclosure: I am nota member of LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "pwm voltage from 3.3v to 5 V to run sabertooth motor controller"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1031#post-6303</link>
			<pubDate>Mon, 12 Sep 2011 03:43:11 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">6303@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It should be possible to directly connect the Maple to the Sabertooth motor controller to feed it a 3.3V PWM signal which should be enough for it to indicate a logical high (A quick search doesn't reveal the microcontroller the controller is using, so I can't be certain). However, if you wish to convert the signal to a 5V PWM signal, I'd recommend the Sparkfun Logic Level Converters:&#60;br /&#62;
&#60;a href=&#34;http://www.sparkfun.com/products/8745&#34; rel=&#34;nofollow&#34;&#62;http://www.sparkfun.com/products/8745&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jonsrr on "pwm voltage from 3.3v to 5 V to run sabertooth motor controller"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1031#post-6302</link>
			<pubDate>Mon, 12 Sep 2011 02:59:56 +0000</pubDate>
			<dc:creator>jonsrr</dc:creator>
			<guid isPermaLink="false">6302@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;What is the best way to convert maples 3.3v pwm to 5 volt pwm to run sabertooth motor controller
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
