Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 07:37 05 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DM enabling PWM

Author Message
Blackened

Regular Member

Joined: 11/08/2012
Location: Australia
Posts: 66
Posted: 12:37am 08 Aug 2014
Copy link to clipboard 
Print this post

Hello all,

I'm struggling to find info regarding the hardware hack to allow the full PWM signal from the sound output.

I've got a standard Duinomite, as well as a Mega. Ideally I'd like to switch the output level to suit sound OR PWM.

Has anyone got a closeup shot of the board and could circle the offending components for me? I have tried in the past but couldn't be 100% certain, and now I actually have need of the PWM output.

Thanks for any help.
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 06:03am 08 Aug 2014
Copy link to clipboard 
Print this post

I have Mega.


You can see R39 needs to be removed
(trusting schematic and silkscreen)
R39 and designator are easily seen
on board just behind the audio out jacks.
I have removed similar by breaking
off with ice-pick ...
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 01:51pm 17 Aug 2014
Copy link to clipboard 
Print this post

In order to make Color Maximite switchable (audio or pwm)

1) Remove R14 and R16
2) Connect 0.1uF capacitor from L #1 output to MMBasic pin 1
3) Connect 0.1uF capacitor from R #2 output to MMBasic pin 2
4) For audio (TONE or softened PWM):
SETPIN 1, DOUT

SETPIN 2, DOUT

5) For PWM (fastest switching)
SETPIN 1, OFF

SETPIN 2, OFF
 
Blackened

Regular Member

Joined: 11/08/2012
Location: Australia
Posts: 66
Posted: 02:46am 18 Aug 2014
Copy link to clipboard 
Print this post

Excellent replies. Thanks Hitsware :) Now I just have to wait for my H-Bridge in the mail.
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 06:21am 18 Aug 2014
Copy link to clipboard 
Print this post

You're wellcome

IMO the 1kOhm resistors shouldn't be there to start with.
That way one could directly drive something like ...
http://www.adafruit.com/products/355
 
Blackened

Regular Member

Joined: 11/08/2012
Location: Australia
Posts: 66
Posted: 04:11pm 30 Sep 2014
Copy link to clipboard 
Print this post

I finally got around to removing the 1k pulldown resister from my DM. Although on my standard DM it's r42, not R39 as with the mega.

Some testing resulted in the following:

PWM output tested with multimeter and voltage 0 through 3.3V depending on duty.
H-bridge wired as per diagram, and if I short it's PWM input pin to 5V the motor works
However, the DM PWM output won't drive the motor?

On the standard DM, the current limiting resister is R39 and 5.6K. Does this need to be bypassed? Or have it's value reduced?

I guess I should just try it and see, but I was hoping someone might be able to confirm or deny before I go messing around lol

Thanks everyone
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 05:31pm 30 Sep 2014
Copy link to clipboard 
Print this post

> On the standard DM, the current limiting resister
> is R39 and 5.6K. Does this need to be bypassed?
> Or have it's value reduced?

For a motor you need to try as much current as safe.
I'd say 100 Ohm resistence PWM pin to motor .
If no movement then you need active current boost .
 
Blackened

Regular Member

Joined: 11/08/2012
Location: Australia
Posts: 66
Posted: 03:12am 03 Oct 2014
Copy link to clipboard 
Print this post

Thanks hitsware,

This current project seems to have taken forever. DOA part from china, replacement components that didn't fix the original DOA problem. An error in the wiring diagram only found once second part arrived from china. Followed by Eureka! Google made it seem all so simple but it didn't turn out that way!!

The first resistor I grabbed out of my junk box was 120 Ohm which worked a treat. In the end I decided not to bother making the output switchable. I think I'll just add a piezo for error beeps and remove the need for audio output.

Just need to code up the full package now. Proportional fan control to maintain a set temperature in a heat exchanger.

Thanks again for your invaluable help. I just wish I could contribute to this forum in a meaningful way, rather than just soaking up everyone else's expertise. In my defence, I do have some expertise, it just doesn't apply here (clearly!!) lolEdited by Blackened 2014-10-04
 
Lou

Senior Member

Joined: 01/02/2014
Location: United States
Posts: 229
Posted: 06:30am 03 Oct 2014
Copy link to clipboard 
Print this post

Blackened,

What H-Bridge are you using ??
I have just ordered some Microchip MCP14E8-E/P to try for low current inductor work.

Thanks,

Lou
Microcontrollers - the other white meat
 
Blackened

Regular Member

Joined: 11/08/2012
Location: Australia
Posts: 66
Posted: 01:52am 05 Oct 2014
Copy link to clipboard 
Print this post

Lou,

One of these.

Packaging was a bit dodgy, the first arrived DOA with the electrolytic partly crushed. Replacing didn't resurrect it I'm afraid and I had to wait a further 3 weeks :(
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 05:23pm 05 Oct 2014
Copy link to clipboard 
Print this post

FWIW .... THESE
are pretty nifty
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024