Jump to content
popdog

Arduino Setup

Recommended Posts

Hi Drifter,

 

That's a good point.

My Arduino's Ground is isolated from track power any feedback could come through the track relays come to think of it.

I'm going to try before my trip to Jaycar

 

Popdog / Shadow_Rusty are your Arduino's grounded to track power supply??

 


Wensky

Share this post


Link to post
Share on other sites

None of the 3 arduino tracks I've done have the power supply ground connected to the arduino ground.

When I was having the issues with the 3rd track, I did try grounding it, but it didn't help in my circumstance.

 

That said, if you are using dead strips, then it most likely will help.

 

Also, Relays by nature are isolated, so no feedback should come through there.

Share this post


Link to post
Share on other sites

Rusty I have completed all the below and the problem has appeared to have worsened now. The issue of other lanes registering laps on RC during practice is now consistent. One car on middle lane registering laps on both outside lanes when car is nowhere near the sensor bridge.

 

1. Fitted '104' ceramic caps (Same as on a SCX motor) accross the rails on each lane.

2. Fitted 200uF capacitor between ground and +5v on the Arduino to reduce brown outs.

3. Grounded an unused, but wired up, 4th lane input.

4. Fitted a ferrite core to the sensor harness.

 

Phil

I'm using photo transistors from Jaycar and yes I have common earth at the sensor end of harness.

What's the best way to connect separate ground to sensors when there is limited ground terminal on the Arduino?

Is it simply achieved by connecting to common ground at the Arduino end?

 

 


Wensky

Share this post


Link to post
Share on other sites

I use cat 5 cable and run all the wires back to the header plug before connecting the earths to the header pin at the board.

I have not used the Jaycar transistors, tested them and could not get reliable results with Trakmate boards. Have not tested with the Ardunio boards.


Phil

 

Hobart Miniature Car Club

 

Tassie Resins

 

Email

 

 

 

 

 

 

Logos%2016_17.small_zpswkcwjf0q.jpg

Share this post


Link to post
Share on other sites

I also use the jaycar sensors and have no issues.

Also, like Phil, I use cat5 network cable for the sensors.

If you have a four or less lane track, you only need one piece of cable.

 

1 twisted pair is used for each lane, being 1x signal and 1x ground.

Then, join all the earths together at the arduino end.

Share this post


Link to post
Share on other sites

My system has all the (jaycar) ir sensors to common gnd, but I use my own software, both on the Arduino and Win 7 Pc. Hope this helps. I have the arduino mounted directly under the track where the sensors are, i.e .short wires.


www.sydneyslotcars.com

Share this post


Link to post
Share on other sites

Just another thought, If using a long USB cable Arduino's can stop communicating with the PC. I had situations where everything starts ok, then a few minutes later the Arduino randomly stops communicating .


www.sydneyslotcars.com

Share this post


Link to post
Share on other sites

USB specification is maximum 5 metre cable length.


Cheers,

 

Garry J

 

Slotworx_Logo_Small.jpg

 

Old age and treachery will overcome youth and skill

Share this post


Link to post
Share on other sites

Re terminated sensors with cat5 and grounded at Arduino end etc and same issue occurring but now the usb keyboard is freezing up also.

I'm going to try another pc I'm using one of those compact Asus Eee pc desktops XP home.

Also going to try a non genuine Arduino uno.

Using short USB its under a meter.

 

 


Wensky

Share this post


Link to post
Share on other sites

RC needs a reasonably fast machine.

Check the specs on the RC web site. I have had some issues with old PC's.

Some of the Radio Control tuning software will not run on my EEPC, the processor and memory are limited and the Operating system is a cut down version.


Phil

 

Hobart Miniature Car Club

 

Tassie Resins

 

Email

 

 

 

 

 

 

Logos%2016_17.small_zpswkcwjf0q.jpg

Share this post


Link to post
Share on other sites

Hey guys. I have an Arduino but not done anything with it yet. Here is pic I got from slotcarsadelaide.com which seems to be a working diagram for the arduino / relay setup

 

ScreenSnapz001.jpg

And the link

Share this post


Link to post
Share on other sites

John that diagram is now included with RC download, along with the latest Sketch.

Until you have yours sorted leave the beta version in case there are any problems, plenty of guys testing it.

Edited by kalbfellp

Phil

 

Hobart Miniature Car Club

 

Tassie Resins

 

Email

 

 

 

 

 

 

Logos%2016_17.small_zpswkcwjf0q.jpg

Share this post


Link to post
Share on other sites

Hay John,

 

That's the diagram included with the Race Coordinator download.

Makes setting up a pice of cake.

I just swapped out pc now. I'm using the HP I had set up for cnc router and so far so good.

 


Wensky

Share this post


Link to post
Share on other sites

I loaded the Beta version onto the pc I'm using now and all looks good at the moment. I will change back to other version as I think it was the Pc causing the issue

 


Wensky

Share this post


Link to post
Share on other sites

Silly question.

Is the 5 vdc supply required on the Arduino when used with RC?

It's obviously powered from USB but was wondering if this is why it's loosing connection thought It might somehow be drawing to much power from the pc's USB.

Edited by Wensky1

Wensky

Share this post


Link to post
Share on other sites

None of our boards have a separate supply. I did try a supply to try and overcome another problem ( not related) but did not not invoice any changes.

The USB will supply enough current with no problems.I think the better PC may fix the problem.


Phil

 

Hobart Miniature Car Club

 

Tassie Resins

 

Email

 

 

 

 

 

 

Logos%2016_17.small_zpswkcwjf0q.jpg

Share this post


Link to post
Share on other sites

I am not using a SS relay, I use a 10 Amp 5v coil relay modules designed for use on Ardunio boards.

I have found that most SS relays drop the track voltage.

The ones I had here were all 12 v coil so I had to buy some anyhow.

The modules are cheap on EBay.

Edited by kalbfellp

Phil

 

Hobart Miniature Car Club

 

Tassie Resins

 

Email

 

 

 

 

 

 

Logos%2016_17.small_zpswkcwjf0q.jpg

Share this post


Link to post
Share on other sites

Yes Ian, I have a four relay on my road course, and single relay module on the rally track.

If you run 4 relays and the starting lights you will need to add Rusty's addition to get it all to work.

I simply used a one relay module to switch my four relays, as I don't use refueling of pits.


Phil

 

Hobart Miniature Car Club

 

Tassie Resins

 

Email

 

 

 

 

 

 

Logos%2016_17.small_zpswkcwjf0q.jpg

Share this post


Link to post
Share on other sites

Looks like swapping the PC was the fix in the end.

Arduino Comms have been very stable and I cannot replicate the Comms fault.

Thanks to all for your kind input an assistance.

Hopefully I can return the favour sometime.

 

Regs,

Lawrence

 


Wensky

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...