Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free > Open ReVolt: open source DC motor controller
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 04-10-2014, 01:18 AM   #6441 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
I got a little 0.1watt speaker, and am going to hook it up to a breadboarded dspic30f4011. I'll listen to 8KHz pwm, and then test out the spread spectrum switching. This will let me fine tune how much variation in frequency is needed before the noise isn't irritating anymore.

__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
mpgmike (01-23-2022)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-10-2014, 02:55 AM   #6442 (permalink)
Dreamer
 
Join Date: Nov 2013
Location: Australia
Posts: 350
Thanks: 95
Thanked 214 Times in 151 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I got a little 0.1watt speaker, and am going to hook it up to a breadboarded dspic30f4011. I'll listen to 8KHz pwm, and then test out the spread spectrum switching. This will let me fine tune how much variation in frequency is needed before the noise isn't irritating anymore.
I was just thinking, now you need to create a mode where the pwm is varied in such a way that the motor plays a tune.

That way it won't just be the F1 guys that can make their motors play music.
  Reply With Quote
The Following 3 Users Say Thank You to Astro For This Useful Post:
MPaulHolmes (04-10-2014), mpgmike (01-23-2022), thingstodo (04-12-2014)
Old 04-10-2014, 05:50 AM   #6443 (permalink)
Dreamer
 
Join Date: Nov 2013
Location: Australia
Posts: 350
Thanks: 95
Thanked 214 Times in 151 Posts
Quote:
Originally Posted by MPaulHolmes View Post
(if you want to get your own cable, or can find 40 feet, let me know)
Welding Cable 2 AWG 50
...
The last part is the end caps. I haven't gotten that yet either. I was thinking 1/4" or thicker of some plasticky sort of material. I hate this part of controller making. The dang enclosure, and interface to the outside world.
For the housing. Maybe add some through connects similar to what Curtis has on their controllers. Have the copper buses bend upwards at the end and so that they are vertical and in line with the ends so the through connects can screw one side directly to the bus and the outside have a stud to connect the lugged cables from the motor/batteries.That way you could use metal ends and screw it down making it weather proof and not have to mess about with plastic ends?
Is there a need for air flow or does the heat sink suffice?

Last edited by Astro; 04-10-2014 at 06:55 AM.. Reason: Thought i was posting in the AC not DC controller thread.
  Reply With Quote
Old 04-10-2014, 09:39 AM   #6444 (permalink)
EcoModding Lurker
 
Join Date: Apr 2009
Location: Mauston, WI
Posts: 20
Thanks: 1
Thanked 8 Times in 7 Posts
Controller playing music? Maybe try for Smoke on the Water!
  Reply With Quote
The Following User Says Thank You to jmcginley For This Useful Post:
MPaulHolmes (04-10-2014)
Old 04-10-2014, 10:04 AM   #6445 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
Quote:
Originally Posted by Astro View Post
For the housing. Maybe add some through connects similar to what Curtis has on their controllers. Have the copper buses bend upwards at the end and so that they are vertical and in line with the ends so the through connects can screw one side directly to the bus and the outside have a stud to connect the lugged cables from the motor/batteries.That way you could use metal ends and screw it down making it weather proof and not have to mess about with plastic ends?
Is there a need for air flow or does the heat sink suffice?
I'm having trouble picturing this. Metal end caps? How would you isolate the bus from them?
__________________
kits and boards
  Reply With Quote
Old 04-10-2014, 08:26 PM   #6446 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
This was the first attempt at spread spectrum switching, and the 8kHz tone:
https://www.dropbox.com/s/8p7fidujso...2011.20.07.mp4

This is what it sounded like after trying to increase the randomization. It was noticeably more hissy:
https://www.dropbox.com/s/krmry0occ4...2011.39.27.mp4

It won't be this loud though while driving. I had the speaker blasting on maximum. All 0.1 watts of her. haha.
__________________
kits and boards
  Reply With Quote
Old 04-11-2014, 12:01 AM   #6447 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
I finally found a use for group theory! To take the array of random values of frequency, and just loop it, definitely doesn't sound too random. People are masters at hearing patterns. If you loop a random noise, you'll hear it if it repeats too often. So... You take the group <Z mod p, *>, but with zero removed, and P is a prime. Then, for any x in Z mod p,

x
x*x
x*x*x
x*x*x*x
...
x*x*x*x...*x (p-1 times) are all different values!! So, it gives you a way to generate every index in the array of random values. YOu can generate a different sequence of numbers from 1 to p-1, for every single element in Z mod p (except for 0 and 1).
For example, if p is 127, you can find
2
2*2 = 4
2*2*2 = 8
2*2*2*2 = 16
...
etc...

Then, you just choose position 2 in the random frequency array, then 4, then 8, then 16, ... eventually it comes back around to 1 (mod 127).

So, you can have truly white noise! Where it won't repeat until, say, every 4 or 8 seconds, but it's all so random, that you won't detect any white noise patterns that are 8 seconds apart!

EDIT: Oh ya, it works perfectly. There are no overtones of anything repeating. It's totally white noise. I'm going to cry it's so perfect.
__________________
kits and boards

Last edited by MPaulHolmes; 04-11-2014 at 02:26 AM..
  Reply With Quote
Old 04-11-2014, 04:40 AM   #6448 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Quote:
Originally Posted by MPaulHolmes View Post
EDIT: Oh ya, it works perfectly. There are no overtones of anything repeating. It's totally white noise. I'm going to cry it's so perfect.
I lost you on the second sentence, but I glad you are glad.
  Reply With Quote
Old 04-11-2014, 04:46 AM   #6449 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Quote:
Originally Posted by MPaulHolmes View Post
DHL Tracking number: 1077685674.
They are in LA now. Do you have all the parts already?
  Reply With Quote
Old 04-11-2014, 08:28 AM   #6450 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
Quote:
Originally Posted by flores View Post
The-1are in LA now. Do you have all the parts already?
Is a fish thirsty? Heck yes I do! Well, when I had changed a couple things, I had already ordered the parts... so I may need some 30 ohm resistors, but may not. One change was from 1 10ohm To 3 30ohm on the 3 inputs to the igbt drivers. By the way, back to group theory! It will be computationally cheaper to do
X
X+x
x+x+x.
Etc., since those will also all generate a distinct sequence of p objects.

__________________
kits and boards

Last edited by MPaulHolmes; 04-11-2014 at 08:49 AM..
  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul and Sabrina's Cheap 3 Phase Inverter (AC Controller) with Field Oriented Control MPaulHolmes Fossil Fuel Free 3431 05-04-2022 06:43 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Three Dirt Cheap DIY Electric Cars - Part 5 SVOboy EcoModder Blog Discussion 0 12-12-2008 05:10 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com