Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Engineering & Systems > Marine Electronics
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 09-11-2020, 13:19   #16
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by lodnik View Post
I'd rather work in Arduino-IDE ... :-) Is it possible? I'm just an amateur.
Vitek
Hi Vitek,
I have not tested Arduino IDE for C++ programming, but based on the information available on the Internet you can use it. If you just want to play changing smart parts of the code it might be suficient. Indeed I tested the serial terminal in Arduino IDE and I cannot say I really liked it. I prefer the one integrated in Eclipse or even Putty in order to send and read messages back from Fenix autopilot.
If you finally use Arduino IDE, please share your experience!

Regards,
Sergio
spascual90 is offline   Reply With Quote
Old 09-11-2020, 14:24   #17
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,448
Re: Fenix autopilot project - tiller autopilot based on Arduino

Sergio,


After the ARC is over I could devote some time to help if my help is of any use. I am in Las Palmas on my boat. I can get an Arduino here and I can possibly still program it it, or test your code.


I may have a couple of ideas coming from actually sailing a small boat over long distances. Sometimes the long time use angle differs from people who have shorter trips.



The tiller arm - the mechanical drive - what brand do you use?


And which arduino board do you use?


barnakiel
barnakiel is offline   Reply With Quote
Old 10-11-2020, 14:56   #18
Registered User

Join Date: Nov 2020
Posts: 15
Re: Fenix autopilot project - tiller autopilot based on Arduino

Hi Sergio, is this scheme working?

https://github.com/spascual90/Fenix/...S-2fa9d745.jpg

I see differences ...

https://github.com/spascual90/Fenix/...S-b93938db.png

Does not match description ...

https://github.com/spascual90/Fenix/...S-9f91e269.PNG

Thanks for the clarification, Vitek
lodnik is offline   Reply With Quote
Old 10-11-2020, 15:29   #19
Registered User

Join Date: Nov 2020
Posts: 15
Re: Fenix autopilot project - tiller autopilot based on Arduino

Test connection ...

Vitek
Attached Thumbnails
Click image for larger version

Name:	Test.jpg
Views:	126
Size:	181.5 KB
ID:	226723  
lodnik is offline   Reply With Quote
Old 11-11-2020, 01:30   #20
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by barnakiel View Post
Sergio,


After the ARC is over I could devote some time to help if my help is of any use. I am in Las Palmas on my boat. I can get an Arduino here and I can possibly still program it it, or test your code.


I may have a couple of ideas coming from actually sailing a small boat over long distances. Sometimes the long time use angle differs from people who have shorter trips.



The tiller arm - the mechanical drive - what brand do you use?


And which arduino board do you use?


barnakiel
Hello Barnakiel,
your feedback and sea trials will be more than welcome!
To start, you have a list of components in,
https://github.com/spascual90/Fenix/.../SCHEMATICS.md

Linear actuator: I purchased it in Aliexpress (Motor Factory Store), but any linear actuator providing the following main requirements should work are:
- 12V as per standard batteries.
- Feedback: provides a potenciometer in order to report the current position of the tiller.
- 300mm stroke (long) is the minimum I might consider
- As fast as possible. I chosed the fastest as I consider the rudder tiller will never provide a load higher to 30 Kg (300N).
Attached is the diagram of the different configurations you can get from supplier.
There is some engineering (I didnt go through) to verify the correct mix of tiller speed/ current consumption/ load in order to calculate the linear actuator installation distance from tiller to rudder axis. I encourage anyone who wants to go through this analisis.

Arduino board: Mega. It provides sufficient TX/RX channels to support USB and Bluetooth communication.

Hope this helps.

Regards,
Sergio
Attached Thumbnails
Click image for larger version

Name:	linear actuator.png
Views:	87
Size:	108.6 KB
ID:	226733  
spascual90 is offline   Reply With Quote
Old 11-11-2020, 01:53   #21
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by lodnik View Post
Hi Sergio, is this scheme working?

https://github.com/spascual90/Fenix/...S-2fa9d745.jpg

I see differences ...

https://github.com/spascual90/Fenix/...S-b93938db.png

Does not match description ...

https://github.com/spascual90/Fenix/...S-9f91e269.PNG

Thanks for the clarification, Vitek

Dear Vitek,
Some clarifications/ limitations on Fenix PCB:
There is an identified error in the current Fenix PCB design. The pins for PWM/DIR are not correctly allocated. PIN 6&7 are the right PINS. PIN 11&12 should be discarded. In consequence, provisions for these signals in Fenix PCB are not valid.

Mitigations proposed:
1 - Usage of a motor controller Arduino shield instead where PWM/DIR pins are directly connected to Arduino through the shield and can be configured correctly. For this purpose I recommend the shield version of MD10C,
https://www.robotshop.com/es/es/moto...no-shield.html

2 - If you already have the MD10C R2, and still wants to use Fenix PCB you can still do so, just connect the PWM/DIR pins from motor controller to the arduino 6&7PINS through cables.


I will update documentation in Github at the first oportunity.

Thank you
Regards,
Sergio
Attached Thumbnails
Click image for larger version

Name:	SCHEMATICS-b93938db.png
Views:	77
Size:	142.3 KB
ID:	226735   Click image for larger version

Name:	SCHEMATICS-45b00106.png
Views:	83
Size:	328.0 KB
ID:	226736  

spascual90 is offline   Reply With Quote
Old 11-11-2020, 02:03   #22
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by lodnik View Post
Test connection ...

Vitek
Looks nice!
spascual90 is offline   Reply With Quote
Old 11-11-2020, 06:49   #23
Registered User

Join Date: Nov 2020
Posts: 15
Re: Fenix autopilot project - tiller autopilot based on Arduino

Hi Sergio, what is it for:
JP2- Keypad
J3- Serial2
JP5- So
Is pin 17 Arduino correctly marked?
Thanks Vitek
lodnik is offline   Reply With Quote
Old 11-11-2020, 22:24   #24
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by lodnik View Post
Hi Sergio, what is it for:
JP2- Keypad
J3- Serial2
JP5- So
Is pin 17 Arduino correctly marked?
Thanks Vitek
Hi,
These are provisions for future expansions. Currently not used.
Regards
Sergio
spascual90 is offline   Reply With Quote
Old 12-11-2020, 15:28   #25
Registered User

Join Date: Nov 2020
Posts: 15
Re: Fenix autopilot project - tiller autopilot based on Arduino

Hi Sergio,
tested in a test connection on a table, everything works great. Phone control OK. Nice job!
I'll wait for the PCB update and have it made.
Tablet control has a complication. Virtuino reports that bluetooth is not paired, even though it is paired. In Server settings, the following appears: Module address 00: 18: E4: 40: 00: 06. Incorrect, always this same value. If I fix it in the settings, everything is OK until the next run of the program, then the error is repeated. Please, how can I solve this?
Thank you, best regards Vitek
lodnik is offline   Reply With Quote
Old 12-11-2020, 22:39   #26
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by lodnik View Post
Hi Sergio,
tested in a test connection on a table, everything works great. Phone control OK. Nice job!
I'll wait for the PCB update and have it made.
Tablet control has a complication. Virtuino reports that bluetooth is not paired, even though it is paired. In Server settings, the following appears: Module address 00: 18: E4: 40: 00: 06. Incorrect, always this same value. If I fix it in the settings, everything is OK until the next run of the program, then the error is repeated. Please, how can I solve this?
Thank you, best regards Vitek
Congratulations! Just some steps ahead to have your prototype ready.
If you are using the same name HC-05 of the paired Bluetooth device as I am, maybe Virtuino is not recognizing the different devices and still looking at the same address. Reported address is MY Bluetooth device :-)
Try changing the name of YOUR Bluetooth device in Android Settings-> Bluetooth to something like 'BT-Autopilot' and select that server in Virtuino->server list.

I hope this works!

Regards,
Sergio
spascual90 is offline   Reply With Quote
Old 13-11-2020, 14:30   #27
Registered User

Join Date: Nov 2020
Posts: 15
Re: Fenix autopilot project - tiller autopilot based on Arduino

Hi Sergio,
I tried to change the name of the HC-05 Bluetooth module in Android to BT-Autopilot, without success. Virtuino doesn't see him, he still only offers HC-05 and he behaves the same way. What next?
Regards Vitek
lodnik is offline   Reply With Quote
Old 14-11-2020, 02:11   #28
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Quote:
Originally Posted by lodnik View Post
Hi Sergio,
I tried to change the name of the HC-05 Bluetooth module in Android to BT-Autopilot, without success. Virtuino doesn't see him, he still only offers HC-05 and he behaves the same way. What next?
Regards Vitek
Im trying to reproduce your issue without success. I can change to any paired Bluetooth device and after closing and opening again virtuino retains new selected module address.Try to start from scratch. delete app, project and device and create it again with the new name.
As virtuino app is not under my control my support is limited. Maybe you can ask for advice directly to virtuino creator?

Good luck!
Regards
Sergio
spascual90 is offline   Reply With Quote
Old 20-11-2020, 12:55   #29
Registered User

Join Date: Nov 2020
Posts: 15
Re: Fenix autopilot project - tiller autopilot based on Arduino

Hi Sergio, I contacted the author of Virtuin, updated the application, here is my reaction:
"Hi, thanks for updating. The issue has been resolved if I run Virtuino. It remembers the last running project and Bluetooth. However, if I run the project icon (created automatically when Virtuino is started for the first time), it does not remember the last running project or the set Bluetooth. However, it is a trifle that can be lived with. :-)
Best regards Vitek "

Virtuino Developer wrote:
"Hello Sir,
I know this issue.
I will fix it soon
Thanks you!

Ilias Lamprou
Virtuino Developer »

I have ordered the Linear Motor from AliExpress.
Will you be updating your PCB any time soon?

I provide this information and thank you for your reply.
Best regards Vitek.
lodnik is offline   Reply With Quote
Old 20-11-2020, 14:57   #30
Registered User

Join Date: Feb 2020
Posts: 36
Re: Fenix autopilot project - tiller autopilot based on Arduino

Hi Vitek,
good news! the author is responsive and has fixed the issue!
On my side, I've just updated Fenix PCB to fix the PWM/DIR error and other known minor limitations.
You can find Fenix PCB V.1.1 in Github,
https://github.com/spascual90/PCB-fo...g/v.1.1-beta.1

Please bear in mind I have NOT tested the changes in PCB and there is a remaining risk. Please let me know your experience!

Regards,
Sergio
spascual90 is offline   Reply With Quote
Reply

Tags
autopilot, project


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arduino based Alternator Regulator Project wayne.b Electrical: Batteries, Generators & Solar 11 11-03-2021 10:16
Arduino ESP8266 stream wifi Capt.Don OpenCPN 20 27-12-2019 14:19
Arduino & Raspberry Pi cruisers projects? lucseawalker Marine Electronics 36 26-04-2019 08:06
Arduino software for navigation/boats vtomanov Navigation 2 11-09-2016 11:43
A DIY barograph based on an Arduino shield PauloOnArbutus Marine Electronics 5 23-01-2016 04:58

Advertise Here


All times are GMT -7. The time now is 10:31.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.