Thread Tools
Old Dec 24, 2015, 03:09 PM
JayJay76 is offline
Find More Posts by JayJay76
Registered User
JayJay76's Avatar
United States, IL, Chgo
Joined Oct 2004
1,027 Posts
Thanks! I'll be back home on sunday, I'll try again and post my progress.

Hey Danny, would it be possible to make an abbreviated sketch that removes everything except 2 proportional throttle channels and the calibration routine? Would be sort of a lite version for those of us using this system in woodies.
JayJay76 is offline Find More Posts by JayJay76
Reply With Quote
Sign up now
to remove ads between posts
Old Dec 25, 2015, 01:14 AM
Dutchraptor is offline
Find More Posts by Dutchraptor
Registered User
Dutchraptor's Avatar
The Netherlands, ZH, Hoogvliet
Joined Jul 2008
351 Posts
Line 25 to 30, as you can see, there you can comment or uncomment the functions to beincluded or not. Put2 slashes (//) in front of it and it won't be included in the program. So you're request is allready in place since version 1.

Danny
Dutchraptor is offline Find More Posts by Dutchraptor
Reply With Quote
Old Dec 31, 2015, 03:28 AM
Dutchraptor is offline
Find More Posts by Dutchraptor
Registered User
Dutchraptor's Avatar
The Netherlands, ZH, Hoogvliet
Joined Jul 2008
351 Posts
Recap time...

OK, I guess not everybody is finding the right files any more. So let's make a recap. I hope it's complete, any additions are welcome. Did It catch all the updates from your side Blutoh?

First version of the Arduino part with howto install it on the Arduino Uno or Nano and how the values should be entered for your system: http://www.rcgroups.com/forums/showp...&postcount=179

Latest Software version for the Arduino: http://www.rcgroups.com/forums/showp...&postcount=201

Latest version for the Raspberry: http://www.rcgroups.com/forums/showt...830911&page=21

How to make your own sounds: http://www.rcgroups.com/forums/showp...&postcount=254

A way to modify setting throught your network with your PC: http://www.rcgroups.com/forums/showp...&postcount=367 you can also use it in combination with TightVNC if you want a "windows"-desktop. Another link: http://www.rcgroups.com/forums/showp...&postcount=452

Handy tool for the soundsystem: http://www.rcgroups.com/forums/showp...&postcount=405

And how to install this tool: http://www.rcgroups.com/forums/showp...&postcount=406

Powering the Raspberry with 5V in the boat: http://www.rcgroups.com/forums/showp...&postcount=430

Look up the Arduino adress on the Raspeberry: http://www.rcgroups.com/forums/showp...&postcount=436

An extra Gas turbine library: http://www.rcgroups.com/forums/showp...&postcount=449

How to install PySerial, IMPORTANT!!!
http://www.rcgroups.com/forums/showp...&postcount=362 and http://www.rcgroups.com/forums/showp...&postcount=432
and another tip: http://www.rcgroups.com/forums/showp...&postcount=471

Extra info for the B+ version, not simple PNP: http://www.rcgroups.com/forums/showp...&postcount=483


if it still doesn't work:
Startx
Using 'file manager'
Copy the file into /home/pi
Double click on pyserial-2.6.tar.gz
Choose 'Action'
Choose 'Extract'
double click on pyserial-2.6.tar0
Choose 'Action'
Choose 'Extract'
Open LXTerminal
type cd pyserial-2.6
press Enter
type sudo python setup.py install
press Enter
( this came from this link: https://www.raspberrypi.org/forums/v...p?f=32&t=38360 )
and one more on Pyserial: http://www.rcgroups.com/forums/showp...&postcount=548


Just SFX, no engine sound with just a Raspberry and no arduino is needed:
http://www.rcgroups.com/forums/showp...&postcount=488 for the Rasp B+ and http://www.rcgroups.com/forums/showp...&postcount=488 and http://www.rcgroups.com/forums/showp...&postcount=491 and for normal Raspberry B: http://www.rcgroups.com/forums/showp...&postcount=492

A little Arduino tester program to see if the arduino sees the RX values: http://www.rcgroups.com/forums/showp...&postcount=513

A little seperate remote for the sounds: http://www.rcgroups.com/forums/showp...&postcount=521

Final Result in my small test boat: http://www.rcgroups.com/forums/showp...&postcount=210

How the calibration works: http://www.rcgroups.com/forums/showp...&postcount=234
Dutchraptor is offline Find More Posts by Dutchraptor
Last edited by Dutchraptor; Dec 31, 2015 at 03:51 AM.
Reply With Quote
Old Dec 31, 2015, 08:25 AM
blutoh is offline
Find More Posts by blutoh
---o-O-o---
blutoh's Avatar
United States, NJ
Joined Mar 2012
1,736 Posts
Danny,

This is excellent, it will save everyone from reading thru a lot of material to get to the important and most current information. Thanks for taking the time to do this.


Pete
blutoh is offline Find More Posts by blutoh
Reply With Quote
Old Jan 26, 2016, 02:29 PM
Iscold is offline
Find More Posts by Iscold
ISCOLD
Joined Mar 2014
31 Posts
Danny,
Well done. Your Recap time was great. Thanks.
I am back, after a long winter. Rsrsrsrsrsrs.

Iscold
Iscold is offline Find More Posts by Iscold
Reply With Quote
Old Jan 28, 2016, 02:42 PM
Iscold is offline
Find More Posts by Iscold
ISCOLD
Joined Mar 2014
31 Posts
Danny, Pete,
How to connect GND between Arduino and Rasp ?

Iscold
Iscold is offline Find More Posts by Iscold
Reply With Quote
Old Jan 29, 2016, 01:06 AM
Dutchraptor is offline
Find More Posts by Dutchraptor
Registered User
Dutchraptor's Avatar
The Netherlands, ZH, Hoogvliet
Joined Jul 2008
351 Posts
Just an ordinary USB cable.

Danny
Dutchraptor is offline Find More Posts by Dutchraptor
Reply With Quote
Old Feb 01, 2016, 03:48 PM
Iscold is offline
Find More Posts by Iscold
ISCOLD
Joined Mar 2014
31 Posts
Thanks Danny

Iscold
Iscold is offline Find More Posts by Iscold
Reply With Quote
Old Feb 02, 2016, 07:05 AM
Iscold is offline
Find More Posts by Iscold
ISCOLD
Joined Mar 2014
31 Posts
Danny,
I get sounds in channel 1 and 2. These channels are connected to port A2 and A3 on Arduino.
In channel 3, I make double wire and connect to A0 and A1 of Arduino. The GND of this channel is connected to Arduino GND.
I am using mode 2 on transmitter.
For channel 4, I connect it to port A4. How can I put sound in this channel?
The button calibration is operational, but no results on this operation. When I start this procedure the Tx led is not blinking as in your youtube video.
The start motor button is ok. But the motor sound stops.
The ambient sound button is ok.
The crew sound button is ok.
The kill button is not ok.
I follow all steps on your recap time.
Could you give me any help?]

Regards
Iscold is offline Find More Posts by Iscold
Reply With Quote
Old Feb 02, 2016, 05:50 PM
blutoh is offline
Find More Posts by blutoh
---o-O-o---
blutoh's Avatar
United States, NJ
Joined Mar 2012
1,736 Posts
Quote:
Originally Posted by Iscold View Post
......
The start motor button is ok. But the motor sound stops..........
Hi Iscold,

The start sound stops after about 6 to 10 seconds depending on which sound library you are using. This is as designed. If you just move the throttle stick up a bit and back, this will queue up the idle sound behind the start effect, and the sound will continue.

For channel 4, are you connected to A4 or pin 4?

Pete
blutoh is offline Find More Posts by blutoh
Reply With Quote
Old Feb 03, 2016, 07:22 AM
Iscold is offline
Find More Posts by Iscold
ISCOLD
Joined Mar 2014
31 Posts
Pete,
Great. Now it is OK. I didn't know this tip.
There is no motor acceleration. How to stop the engine? In my case only killing the Rasp.
The channel 4 is connected to A4, and now it is OK. I got sound effect 5.
Many thanks.
Iscold is offline Find More Posts by Iscold
Reply With Quote
Old Mar 17, 2016, 06:30 AM
tweety777 is offline
Find More Posts by tweety777
Registered User
tweety777's Avatar
Vlaardingen, The Netherlands
Joined Nov 2008
1,393 Posts
Hey guys,

I've jumped in here somewhere in the beginning but didn't have the time to follow the quick process here and with a lot of uncertainties on my own application I quit following.
I haven't been standing still in the mean time however, I now have a much better view of where I want to go and how to get there.
The plans have changed a lot during the time that has passed.
My father has joined the ride here to help me get going since the new hull is getting nearer to being ready for sea trials.
Previously I had decided to stick with Arduino only but the video camera's alone require a Raspberry Pi and now I decided I'll be using the Pi to handle the communication between the shore and the boat with 4 Arduino's sorting out all the timing stuff whilst the Pi will have it's hands free to handle video, sound and positioning.
The Arduino's will be hooked up by USB cable to the Pi.
The first Arduino has now been programmed using Duthraptors (Danny's) Arduino code, no changes made there.
I will try to make my own Pi programme with the help from my father to have it custom made to my needs and requirements.

Here is how I will set it up in the hull:

Here is the main control, the Pi with all 4 USB cables attached each controlling an Arduino.
The Mega visible here will control the crane on top of the dive area, the 2 ROV's and it's A-frame, the davit's for both the hyperbaric lifeboat, the man overboard boat and 2 of the lifeboats and it might possibly also control the radiotransmissions with the lifeboats.
All electronics here will get a vertical mounting since quite some relais will be placed in this region along with a fuse box and some voltage regulators so I can use only 12V batteries whilst having the correct voltage for every individual component at the ready.

This is the lay-out of the electronics in the bow, only the 3 voltage regulators are missing here and maybe 2 time-delay relais.
The Arduino Mega will be placed in the superstructure.
The small motors will drive the anchor chains, with a bin with a drain tube below it since I intent to flush my anchors like on the real ship when getting them up and don't want to make a mess of my electronics.
The drain tube will be connected to the manifold to with the pumps will be connected so it can be drained without anyone noticing.

Rough lay-out in the stern.
I'm short of an ESC here and there will be a stepper motor to turn the main crane and a servo to raise and lower it's boom and quite a bit more servo's.

This is the overall impression with the electronics in place.

Greetings Josse
tweety777 is offline Find More Posts by tweety777
Reply With Quote
Old Mar 17, 2016, 06:37 PM
blutoh is offline
Find More Posts by blutoh
---o-O-o---
blutoh's Avatar
United States, NJ
Joined Mar 2012
1,736 Posts
Looking good Josse!

Keep us posted on your progress.

Pete
blutoh is offline Find More Posts by blutoh
Reply With Quote
Old May 25, 2016, 11:42 AM
Dutchraptor is offline
Find More Posts by Dutchraptor
Registered User
Dutchraptor's Avatar
The Netherlands, ZH, Hoogvliet
Joined Jul 2008
351 Posts
Raspberry Pi 2B+ problem

Hi guys,
Does any of you guys have a fix for the registration, the last step in autostart? I keep getting this error: insserv: script startsoundfx is not an executable regular file, skipped!

chmod done (777 and 755) and still keep having problems. I also keep having problems with receiving the right codes from the arduino. The arduino is connected through the USB.

Raspberry is the 2B+ version with Jessie firmware.

Danny
Dutchraptor is offline Find More Posts by Dutchraptor
Reply With Quote
Old May 26, 2016, 04:17 AM
Dutchraptor is offline
Find More Posts by Dutchraptor
Registered User
Dutchraptor's Avatar
The Netherlands, ZH, Hoogvliet
Joined Jul 2008
351 Posts
Been trying and trying. Finally found something. Can anyone confirm this? I tried on a 2 B+ model. It seems to work, but I've been changing around a lot past days and I hope that this is the only part that really needed to change in the instructions.

When you go to the startsoundfx file in the autostart folder, you can then click with the right button and go to the properties. Then go to the permissions and set all options to anyone. I also checked this for the serSoundfx file and the ini file.

grtz.

Danny

PS: the program won't start the process when the right tty isn't found or selected. No error seen on screen. Aye Aye is cut a bit short to a hick up, but it works.
Dutchraptor is offline Find More Posts by Dutchraptor
Reply With Quote


Thread Tools