Jump to content




Photo

Need a slot car controller based on Arduino


  • Please log in to reply
24 replies to this topic

#1 Dante

Dante

    On The Lead Lap

  • Full Member
  • PipPipPipPip
  • 317 posts
  • Joined: 26-October 09

Posted 09 June 2017 - 12:47 PM

I need a slot car controller based on Arduino with speed control and brakes. The motor speed is controlled with an H-bridge but the brakes are the problem. The brakes must be adjustable from no brakes to full brakes and everywhere in between and is controlled by a pot...

 

A schematic and sketch would be very helpful.

 

Does anybody have some ideas?


Dante Cantalini




#2 Dennis David

Dennis David

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 3,424 posts
  • Joined: 05-April 06
  • Gender:Male
  • Location:SF Bay Area

Posted 09 June 2017 - 12:59 PM

That's a good question though I'm not sure how much help you would get on this forum. Have you checked out any Arduino forums?

Dennis David
    
 


#3 Dante

Dante

    On The Lead Lap

  • Full Member
  • PipPipPipPip
  • 317 posts
  • Joined: 26-October 09

Posted 09 June 2017 - 01:21 PM

I've checked Arduino, Adafruit, and SparkFun but no luck.


Dante Cantalini

#4 Cheater

Cheater

    Headmaster of the asylum

  • Root Admin
  • PipPipPipPipPipPipPipPip
  • 25,699 posts
  • Joined: 14-February 06
  • Gender:Male
  • Location:Norcross, GA

Posted 09 June 2017 - 01:28 PM

Dante,

 

Dennis has given you good advice IMO.

 

I am not an electronics guy and was unfamilair with Arduino, so I did a little searching.

 

Based on your last post, you've not found an existing solution to what you desire. If I was in your shoes, I would post a question regarding what you seek in this Arbuino SUBFORUM. Perhaps there are other fourms worth posting to as well.

 

Seems most are using PWM for motor control in this arena, and that's not been very successful for slot car use to the best of my knowledge.

 

Just one question: you said you 'need' a slot car controller based on Arduino. Is this not a 'want,' rather than a 'need'? (That's a conversation I often used to have with my two sons: the difference between wants and needs. LOL.)


Gregory Wells

Never forget that first place goes to the racer with the MOST laps, not the racer with the FASTEST lap


#5 Markomatic

Markomatic

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 101 posts
  • Joined: 10-May 17
  • Gender:Male
  • Location:Madison, WI

Posted 09 June 2017 - 01:50 PM

What would the advantage be of running a controller with Arduino? Hall effect on the trigger as a position sensor?


Mark Miller

#6 Dennis David

Dennis David

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 3,424 posts
  • Joined: 05-April 06
  • Gender:Male
  • Location:SF Bay Area

Posted 09 June 2017 - 10:56 PM

I think you need to ask the question on what you want the brake effect to accomplish with regards to voltage and not mention it's for slot cars, etc. 


Dennis David
    
 


#7 Bazzie

Bazzie

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 140 posts
  • Joined: 18-May 16
  • Gender:Male
  • Location:New Zealand

Posted 10 June 2017 - 03:56 PM

Slotcar speed controller with display and electronic memory project

Why specifically H-bridge? Do you want to drive the motor in both directions? I assume it's not for slot car? For slot car typically only use a high-side MOSFET driver, and for brake you switch another MOSFET in that shorts the motor positive down to ground.

You could in an H-bridge just switch on both transistors on the low side to brake the motor. Pulse them (PWM) and you have a variable brake.

And BTW PWM works fine for slot car controllers.

Some people have referred to delays with PWM but that certainly was not because of PWM per se, that must have been due to other design problems with the specific controller.

Eben Brand


#8 Cheater

Cheater

    Headmaster of the asylum

  • Root Admin
  • PipPipPipPipPipPipPipPip
  • 25,699 posts
  • Joined: 14-February 06
  • Gender:Male
  • Location:Norcross, GA

Posted 10 June 2017 - 05:31 PM

And BTW PWM works fine for slot car controllers.


I'll take your word for it, Even, but at least in the 1/24 arena I'm not aware of anyone making a PWM controller that is seeing a lot of use or recommendations.

Gregory Wells

Never forget that first place goes to the racer with the MOST laps, not the racer with the FASTEST lap


#9 Bill from NH

Bill from NH

    Age scrubs away speed!

  • Full Member
  • PipPipPipPipPipPipPipPip
  • 14,766 posts
  • Joined: 02-August 07
  • Gender:Male
  • Location:New Boston, NH

Posted 10 June 2017 - 07:40 PM

In the early 2000s we had a software engineer who prided himself as an electronic techie. He built a PWM controller for his son & brought a Tectronic oscilloscope to the raceway on race nights to tweek its tuning. I would say its performance was marginal at best. He promised controllers to others, but never delivered. After about a year, he disappeared from this area and his controller design went to some cloud. :)
Bill Fernald
 
I intend to live forever!  So far, so good.  :laugh2:  :laugh2: 

#10 MSwiss

MSwiss

    Grand Champion Poster

  • IRRA National Director
  • PipPipPipPipPipPipPipPip
  • 25,915 posts
  • Joined: 16-April 06
  • Gender:Male

Posted 10 June 2017 - 09:43 PM

Did we ever get a reason the OP needs such a device?

Mike Swiss
 
Inventor of the Low CG guide flag 4/20/18
IRRA® Components Committee Chairman
Five-time USRA National Champion (two G7, one G27, two G7 Senior)
Two-time G7 World Champion (1988, 1990), eight G7 main appearances
Eight-time G7 King track single lap world record holder

17B West Ogden Ave., Westmont, IL 60559, (708) 203-8003, mikeswiss86@hotmail.com (also my PayPal address)

Note: Send all USPS packages and mail to: 692 Citadel Drive, Westmont, Illinois 60559


#11 Bazzie

Bazzie

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 140 posts
  • Joined: 18-May 16
  • Gender:Male
  • Location:New Zealand

Posted 10 June 2017 - 11:29 PM

A South African guy I know sold 140 of his PWM controllers in SA. Back then it was a PIC micro controller based circuit using a tapered tinted piece of perspex in between an IR LED and receiver, essentially maintenance free and very smooth.

I've not gone fully commercial with my controller by choice, but I have made a few for friends. They are too labour intensive the way I make them at the moment to bother, and I only just sorted what I hope to be the last of the teething problems after I made some design changes. One of the fast guys at our club reckons he's faster with my controller than with his other unnamed but very popular controller.

Eben Brand


#12 Zippity

Zippity

    Grand Champion Poster

  • Banned
  • PipPipPipPipPipPipPipPip
  • 5,278 posts
  • Joined: 05-March 06
  • Gender:Male
  • Location:Wellington, New Zealand

Posted 11 June 2017 - 12:12 AM

... One of the fast guys at our club reckons he's faster with my controller than with his other unnamed but very popular controller

 
Oh, who would that be then?
 
I don't see anything showing up in our latest race results. :(
Ron Thornton

#13 Bazzie

Bazzie

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 140 posts
  • Joined: 18-May 16
  • Gender:Male
  • Location:New Zealand

Posted 11 June 2017 - 12:15 AM

You know.

Eben Brand


#14 Zippity

Zippity

    Grand Champion Poster

  • Banned
  • PipPipPipPipPipPipPipPip
  • 5,278 posts
  • Joined: 05-March 06
  • Gender:Male
  • Location:Wellington, New Zealand

Posted 11 June 2017 - 02:37 AM

If it was such a superior controller, wouldn't he race with it in all classes?


Ron Thornton

#15 Bazzie

Bazzie

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 140 posts
  • Joined: 18-May 16
  • Gender:Male
  • Location:New Zealand

Posted 11 June 2017 - 02:38 PM

No one said superior! I just quoted him! It's his choice what he wants to race with it. A controller is a very personal thing. If you ever played golf you would understand the analogy to a putter - it's a matter of taste.

 

People that have tried my controller liked it. And this is not about my controller anyway, it's about PWM, that's the point I was making. Just as there are good and less good instances of analog controllers, so there are good and less than good instances of PWM controllers, and that's the point I was making...


Eben Brand


#16 Bazzie

Bazzie

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 140 posts
  • Joined: 18-May 16
  • Gender:Male
  • Location:New Zealand

Posted 11 June 2017 - 02:57 PM

And to further clarify, I was not saying mine is the best PWM one or better than analog either, I am not deluded!! All I'm saying is that PWM per se is not the problem, it can be done well!!


Eben Brand


#17 CDavis7

CDavis7

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 196 posts
  • Joined: 12-August 08
  • Gender:Male

Posted 11 June 2017 - 04:48 PM

It's been done. The major problem is that the Arduino needs to power up before it's operating. The brief time it takes to power up means your car is stationary for a bit after every track call while everyone else has taken off. The only way around this would be a 5v battery connected to the controller, which would not be legal.


Chris Davis
3d-Racing

#18 Dennis David

Dennis David

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 3,424 posts
  • Joined: 05-April 06
  • Gender:Male
  • Location:SF Bay Area

Posted 11 June 2017 - 06:09 PM

PWM Controller

I've used his non-PWM controllers and they were great so I would not bet against this guy. May not work for open wing cars but should work for everything else.

IMG_6936.PNG

Dennis David
    
 


#19 Dante

Dante

    On The Lead Lap

  • Full Member
  • PipPipPipPip
  • 317 posts
  • Joined: 26-October 09

Posted 13 June 2017 - 12:45 PM

Thanks, guys.

I got more postings from this forum than all the others in total!
Dante Cantalini

#20 Samiam

Samiam

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 4,772 posts
  • Joined: 18-January 12
  • Gender:Male
  • Location:Long Island, NY

Posted 13 June 2017 - 04:28 PM

I'm impressed with the technical knowledge assembled here.

 

I thought Arduino was a former Argentine president.


  • Cheater likes this
Sam Levitch
 
"If you have integrity, nothing else matters, and if you do not have integrity, nothing else matters."
    Robert Mueller, special counsel (2013)
 
"... because people have got to know whether or not their president is a crook."
    Richard M .Nixon, Nov 17, 1973
 
"Fool me once, same on... shame on you. Fool me... you can't get fooled again."
    George W. Bush

#21 Cheater

Cheater

    Headmaster of the asylum

  • Root Admin
  • PipPipPipPipPipPipPipPip
  • 25,699 posts
  • Joined: 14-February 06
  • Gender:Male
  • Location:Norcross, GA

Posted 13 June 2017 - 04:48 PM

This is a perfect example of why Slotblog is a better place for slot car enthusiasts than those social media sites.

Yes, I am biased... LOL!

Gregory Wells

Never forget that first place goes to the racer with the MOST laps, not the racer with the FASTEST lap


#22 Dennis David

Dennis David

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 3,424 posts
  • Joined: 05-April 06
  • Gender:Male
  • Location:SF Bay Area

Posted 13 June 2017 - 04:51 PM

And no pictures of kittens.

Dennis David
    
 


#23 Samiam

Samiam

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 4,772 posts
  • Joined: 18-January 12
  • Gender:Male
  • Location:Long Island, NY

Posted 13 June 2017 - 04:53 PM

Till now...


Sam Levitch
 
"If you have integrity, nothing else matters, and if you do not have integrity, nothing else matters."
    Robert Mueller, special counsel (2013)
 
"... because people have got to know whether or not their president is a crook."
    Richard M .Nixon, Nov 17, 1973
 
"Fool me once, same on... shame on you. Fool me... you can't get fooled again."
    George W. Bush

#24 Dennis David

Dennis David

    Posting Leader

  • Subscriber
  • PipPipPipPipPipPipPip
  • 3,424 posts
  • Joined: 05-April 06
  • Gender:Male
  • Location:SF Bay Area

Posted 13 June 2017 - 04:54 PM

You mean if I hook this up to my controller it wouldn't be legal?

IMG_6939.JPG

Dennis David
    
 


#25 Bazzie

Bazzie

    Mid-Pack Racer

  • Full Member
  • PipPipPip
  • 140 posts
  • Joined: 18-May 16
  • Gender:Male
  • Location:New Zealand

Posted 13 June 2017 - 04:55 PM

Ha-ha, Sam!

Regarding boot-up time, on my smarter controller I do run a battery. It falls within Aussie and I think British rules, some others not according to the letter. There is however no way that my controller can apply either more power, or power while track power is off. We had another thread some time ago about controllers and batteries.

There is in fact a problem with pretty much most modern controllers in that they contain capacitors as smoothing/filtering to keep noise in the circuits to a minimum. The rule says controllers are not to store voltage. Most do, so by that rule all controllers that contain any capacitors violate the rule. I queried it with our local NZSCA and I was allowed to use my controller in the nats last year.

My lower-end controller does not use a battery, but I disable the bootloader and make sure that I switch on power early in the power-up sequence if the trigger is pulled, and yes, there's a very small delay, perhaps 20ms, hard to measure, but because I run pretty deep into the corners. I was right with the group last week when I raced with the backup. Just a fraction behind, which is not a bad thing, better to not get tangled up in the first corner.

Eben Brand






Electric Dreams Online Shop