RV News RVBusiness 2021 Top 10 RVs of the Year, plus 56 additional debuts and must-see units → ×
 

Go Back   Thor Forums > Thor Tech Forums > Modifications and Updates
Click Here to Login
Reply
 
Thread Tools Display Modes
 
Old 11-13-2018, 05:46 PM   #141
Axis/Vegas Enthusiast
 
JamieGeek's Avatar
 
Brand: Thor Motor Coach
Model: Axis 24.1
State: Michigan
Posts: 9,180
THOR #1150
Welcome to the site Butch.

Yes: I had a simple circuit setup that was working and then FW29z pointed out that FDC1004 part/prototype board. The board works much more reliably than my simple circuit did.

The Arduino code is attached--its pretty simple.
Attached Files
File Type: txt ArduinoCode.txt (2.3 KB, 63 views)
__________________

__________________
2014 Thor Axis 24.1
2018 Chevy Bolt
blog - https://spareelectrons.wordpress.com/
JamieGeek is offline   Reply With Quote
Old 11-13-2018, 08:44 PM   #142
Junior Member
 
Brand: Still Looking
State: Florida
Posts: 3
THOR #13729
Quote:
Originally Posted by JamieGeek View Post
Welcome to the site Butch.

Yes: I had a simple circuit setup that was working and then FW29z pointed out that FDC1004 part/prototype board. The board works much more reliably than my simple circuit did.

The Arduino code is attached--its pretty simple.
Thanks so much! Are all of these includes related to Bluetooth? I won't be using that, so I want to delete as much as possible.

#include <RBL_nRF8001.h>
#include <RBL_services.h>

#include <aci.h>
#include <acilib.h>
#include <acilib_defs.h>
#include <acilib_if.h>
#include <acilib_types.h>
#include <aci_cmds.h>
#include <aci_evts.h>
#include <aci_protocol_defines.h>
#include <aci_queue.h>
#include <aci_setup.h>
#include <ble_assert.h>
#include <boards.h>
#include <dtm.h>
#include <hal_aci_tl.h>
#include <hal_platform.h>
#include <lib_aci.h>
__________________

__________________
ButchSmartini is offline   Reply With Quote
Old 11-14-2018, 12:23 AM   #143
Axis/Vegas Enthusiast
 
JamieGeek's Avatar
 
Brand: Thor Motor Coach
Model: Axis 24.1
State: Michigan
Posts: 9,180
THOR #1150
Quote:
Originally Posted by ButchSmartini View Post
Thanks so much! Are all of these includes related to Bluetooth? I won't be using that, so I want to delete as much as possible.

#include <RBL_nRF8001.h>
#include <RBL_services.h>

#include <aci.h>
#include <acilib.h>
#include <acilib_defs.h>
#include <acilib_if.h>
#include <acilib_types.h>
#include <aci_cmds.h>
#include <aci_evts.h>
#include <aci_protocol_defines.h>
#include <aci_queue.h>
#include <aci_setup.h>
#include <ble_assert.h>
#include <boards.h>
#include <dtm.h>
#include <hal_aci_tl.h>
#include <hal_platform.h>
#include <lib_aci.h>
I believe the top two RBL_* includes are for the bluetooth shield.
__________________
2014 Thor Axis 24.1
2018 Chevy Bolt
blog - https://spareelectrons.wordpress.com/
JamieGeek is offline   Reply With Quote
Old 11-14-2018, 12:42 AM   #144
Junior Member
 
Brand: Still Looking
State: Florida
Posts: 3
THOR #13729
Quote:
Originally Posted by JamieGeek View Post
I believe the top two RBL_* includes are for the bluetooth shield.
Ah, I got my full answer: looking at the BLEPeripheral library, I see every one of those files that I was asking about. OK, cool - I don't need any of them.

I will try to strip the program down to the bare minimum for reading the capacitance and displaying it on the serial monitor. I have other plans for getting the data where I need it.

I do have another question, if you don't mind. When you're looking at the raw data on the serial monitor, what kind of range are you seeing in the capacitance readings between an empty tank, a half-full tank, and a full tank? (In the actual installation on your tank, that is - not on the workbench.) My problem was all of my readings were too close together. I'm hoping for a really wide range - hundreds of units of measurement between each 1/4 tank.
__________________
ButchSmartini is offline   Reply With Quote
Old 11-14-2018, 01:20 AM   #145
Axis/Vegas Enthusiast
 
JamieGeek's Avatar
 
Brand: Thor Motor Coach
Model: Axis 24.1
State: Michigan
Posts: 9,180
THOR #1150
Quote:
Originally Posted by ButchSmartini View Post
Ah, I got my full answer: looking at the BLEPeripheral library, I see every one of those files that I was asking about. OK, cool - I don't need any of them.

I will try to strip the program down to the bare minimum for reading the capacitance and displaying it on the serial monitor. I have other plans for getting the data where I need it.

I do have another question, if you don't mind. When you're looking at the raw data on the serial monitor, what kind of range are you seeing in the capacitance readings between an empty tank, a half-full tank, and a full tank? (In the actual installation on your tank, that is - not on the workbench.) My problem was all of my readings were too close together. I'm hoping for a really wide range - hundreds of units of measurement between each 1/4 tank.
With the FDC1004 I'm getting readings in the thousands between empty and full (like empty is something like 15,000 and full is 50,000--although they may be backwards my algorithm in the phone doesn't care if the range goes from 15k to 50k or from 50k to 15k).
__________________
2014 Thor Axis 24.1
2018 Chevy Bolt
blog - https://spareelectrons.wordpress.com/
JamieGeek is offline   Reply With Quote
Old 12-30-2018, 11:51 PM   #146
Junior Member
 
State: Florida
Posts: 17
THOR #13163
As a new Thor owner and an old electronics guy I really appreciate what you guys have done.

I would like to do what you have done (capacitive system) but use the existing system of lights to show the level.

I have a lot of Arduino experience.

I will use the code listed and adopt and use the arduino to trigger the sensors of the current system.

Is this working in your MH?
__________________
DougLeppard is offline   Reply With Quote
Old 12-31-2018, 12:19 AM   #147
Axis/Vegas Enthusiast
 
JamieGeek's Avatar
 
Brand: Thor Motor Coach
Model: Axis 24.1
State: Michigan
Posts: 9,180
THOR #1150
Quote:
Originally Posted by DougLeppard View Post
As a new Thor owner and an old electronics guy I really appreciate what you guys have done.

I would like to do what you have done (capacitive system) but use the existing system of lights to show the level.

I have a lot of Arduino experience.

I will use the code listed and adopt and use the arduino to trigger the sensors of the current system.

Is this working in your MH?
That was my original plan: just light up the existing indicators using the new circuit. I then found a bluetooth module and figured I could do it with a phone without having to disturb the existing system.

Yes it works, however, if you hook up more than just the black tank you have to ensure that the signal wires for each tank are shielded against each other--otherwise you'll get some crosstalk and the level of one tank will affect the reading of the other.
__________________
2014 Thor Axis 24.1
2018 Chevy Bolt
blog - https://spareelectrons.wordpress.com/
JamieGeek is offline   Reply With Quote
Old 12-31-2018, 10:48 PM   #148
Junior Member
 
State: Florida
Posts: 17
THOR #13163
I was thinking it would just be the black water.
__________________

__________________
DougLeppard is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


» Featured Campgrounds

Reviews provided by

Disclaimer:

This website is not affiliated with or endorsed by Thor Industries or any of its affiliates. This is an independent, unofficial site.




All times are GMT. The time now is 02:14 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 PL2
×