DIY Wind sim with Arduino Uno Rev 3 and Arduino Motor Shield Rev 3
Hi all, after watching a tutorial by Boosted Media (which can be found here:
I went ahead to build my own and came up with a few problems, and from looking at various forums it seems like alot of issues and only one briefly mentioned a possible solution, that not many people seemed to be able to figure it out. So after getting it figured out I thought I'd share it. Total cost for project was £120.
Please forgive some of my terminology/explanation, this is my first Arduino project, I haven't done many electrical projects at all (definately nothing like this) and this is my first time using the Simhub. I can't figure out how to embed a picture on this forum, is there a way instaed of doing the links? Anyway...
It will be worth watching part 1 and 2 of the tutorial via the link above.
Now the changes to that tutorial:
The Arduino Motor Shield Rev 3 looks like this:
I got the following parts:
Note that the Arduino Motor Shield Rev3 can provide up to 4 amps, 2 amps per motor channel, but once 2amps total is reached the voltage drops to 9v. My fans are apparently 1.4amps per fan, so they breach the 2amps total, but the wind force is still enough at 9v.
Arduino Uno Rev3
Arduino Motor Shield Rev3
Other parts can be found easily enough on ebay/amazon as per the youtube tutorial.
In the tutorial it mentions about the jumper, this is done differently with the Rev 3. On the back of the motor shield, there is a part which says Vin connect. See the following pic:
There will be three dots of solder above it. The left two square pads of solder (circled in red in the pic above) are connected by a copper trace between them which you cannot see. To make sure each board is being powered seperately (the arduino uno by the usb cable, and the motor shield by the power supply), you need to take a craft knife and run it between the two square pads of solder (marked in green on the pic above), to cut through the copper connection. Before you do it, get a voltmeter if you have one, and test for continuity between the two pads. You should get a low reading of something like 0.2 to 0.4. Then use the knife to cut the copper, and check for continuity with the voltmeter between each attempt of 'scoring/cutting'. When the voltmeter stops giving a reading, you have managed to cut through.
Next job is to connect the wires. So follow the tutorial and cut the wires and strip the ends for the fans and power supply.
With the fans, one of the wires will have white lines along it, that is the negative wire, whilst the other wire without the stripes is positive.
With the power supply, the white wire goes into the vin terminal, and the black wire goes into the ground/negative terminal marked GND (bottom left of the picture of the board above).
Once they are all connected it should look like this:
Now connect the Arduino Uno rev 3 to the Arduino motor shield rev 3, plug in the power supply, and plug in your usb cable to the arduino uno and PC.
Download the Simhub software. Once you have the software open, complete the following steps:
- On the left hand side go to settings, and turn on/activate the arduino section.
- On the left hand side, go to Arduino, then click 'my hardware' towards the top left.
- Click on single arduino, then click on open arduino setup tool.
- Towards the top right, select your board (Arduino Uno), and select the Arduino Serial Port that you are using (this will be the usb port). Tick the box that says 'I understand...'
- On the left hand side, under General, name this Arduino setup, then scroll down to SHAKEIT PWM Outputs. Click the plus sign so it shows 2 (if you are using two fans). For PWM Output 1 pin, select 3. For PWM Output 2 pin, select 11. I left the other options at default.
- Towards the top right, click 'Upload to Arduino'. It will then run the process and complete.
- Go back to the main simhub. Click on ShakeIt Motors on the left hand side. At the top there should be three tabs, make sure you are on the Effects Profile tab. Scroll down and enable Speed. Move the volume slider to 100% (you can vary this later). Just to the left of the 'Speed' heading, there is an arrow, click it to expand it. The details under here are explained in the youtube tutorial, but I set it to manual, then effect low at 20, and effect high at 150.
- With the three tabs at the top, go to 'Motors Output'. Enable 'Arduino Motors and Fans', and click the arrow to the left of this to expand it. Scroll down and turn on Speed in channel 1 and channel 2. Towards the top right there is output tuning, I set this to threshold 0%, and minimum force 30%. These are explained a bit more in the youtube tutorial.
- Go back to the 'Effects Profile' tab, and under the Speed Section, at 'Live Effects' there should be a test button in the graph section, click on that several times in quick succession and your fans should spin if it is succesfully setup. There should be some lights next to the terminals on the motor shield where the fans are connected which light up when you click test which will show power is being provided.
- On the left hand side, click on Games. Click on the game you want to use it in, and it will install/update some files so it will work.
That should be it!
Now launch the game, and see if it works as expected. Then adjust the volume slider in the effects profile tab if you want to reduce the maximum fan speed.
You might need to get a heatsink for the chip on the Motor Shield, it is the black rectangle in the middle of the shield. I have purchased some Raspberry Pi ones and will use that.
Please let me know if this works for you! It is difficult to get hold of the version of the arduino uno and motor shield that boosted media use, so hopefully this will let others use the latest versions.
Good luck all!
You sir are a legend. Thank you so, so, so much for sharing this information. I have been battling with this for a couple of weeks and was about to give up. I am using a Cytron Shield MDD10 motor shield with a rev 3 arduino uno. The Cytron Shield MDD10 is a 10 amp motor shield for two fans, each running at 10A constant, so it will unleash the full power of your fans, which are the same as mine I think. if you upgrade your shield to this model you will have to scratch the 5V supply circuit on the bottom as you described for the Arduino shield, and set the PWM1 jumper to pin D3, and the PWM2 jumper to pin D10. Output settings repeated as 3 and 10 in the Arduino sketch as you described.
Once again thank you. What a star you are.
@gazzip so glad it has helped someone! I had almost given up when I found a bit of info here and there to piece together what I had to do, which was a bit confusing as I'm relatively new to this.
So with the Cytron Shield MDD10, you put the PWM jumpers on D3 and D10. What do you have the DIR jumper on? Also I see there is no negative connection for the fans, did you just put those in with the power supply negative connection?
Thanks for the info regarding the Cytron Shield 👍