Forum Software Ferduino code Atlas Scientific Tantacle Shield

Atlas Scientific Tantacle Shield


Post Number:#1 Post Mon Mar 20, 2017 4:00 am
Posts: 8
Topics: 3
Solve rating: 0
Joined: Thu Mar 09, 2017 11:51 am
Topics: 3
Age: 52
Gender: None specified
National Flag:
South Africa
I'm investigating the possibility of using the new tentacle shield from Atlas Scientific in I2C mode.

Searched the forum, but only find reference to Fernando's custom shield that fits onto the Ferduino board - and this uses the standard pins 14,15 for Serial 3 and pins 16,17 for stamps multiplexer.

Anyone have working code or suggestions for code changes in Ferduino to get this working?

Post Number:#2 Post Mon Mar 20, 2017 8:59 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Have you bought the shield already?

I sent a PM to Patrick Meister asking for help.

Anyway you can use this shield with your DIY controller too.

Only connect the pins 14 - 17, 5V and GND available on bottom side.

It only won't be stackable but Tentacle is not for Arduino Mega too.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Mon Mar 20, 2017 12:56 pm
Posts: 8
Topics: 3
Solve rating: 0
Joined: Thu Mar 09, 2017 11:51 am
Topics: 3
Age: 52
Gender: None specified
National Flag:
South Africa
I purchased the tentacle shield and 4 ezo stamps and 4 probes from Atlas.

What I like about the Tentacle shield:1
-Provides full isolation between stamps/probes
-Option to use in UART and I2C mode

I have tested the tentacle shield on Mega R3 using code supplied by Atlas - I can switch between UART and I2C modes and am getting very stable and accurate readings from probes.

the next step is to change the Ferduino code (as needed) to implement the I2C mode for the atlas sensors- I am still figuring out how this part of your code functions.

As I am still waiting for my LCD, I am fiddling around with your code.


btw.
If only I had Ferduino board, it would save so much time..

Post Number:#4 Post Mon Mar 20, 2017 1:16 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

The shield for Ferduino Mega has full isolation too.

As you told the Tentacle can work with UART, there any special reason to use I2C instead UART?

As I can see in documentation and sample code for 1 shield only this pins are needed.

SoftwareSerial sSerial(11, 10); // RX, TX  - Name the software serial library sftSerial (this cannot be omitted)

int s0 = 7;                         // Tentacle uses pin 7 for multiplexer control S0
int s1 = 6;                         // Tentacle uses pin 6 for multiplexer control S1
int enable_1 = 5; // Tentacle uses pin 5 to control pin E on shield 1


To make it work without change the code you can wire this pins like this:

10 -11 to 15 - 14 (RX3 and TX3);

6 - 7 to 17 - 16 (S1 and S0);

Pin 5 to GND or 5V I don't know what's default status to use only 1 shield maybe Patrick can help.

And don't forget to change jumpers for this position:

Image


-------------------------------- Last edited Mon Mar 20, 2017 1:21 pm --------------------------------

Use this code for tests: https://create.arduino.cc/editor/Fernan ... 4c/preview
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Mon Mar 20, 2017 1:49 pm
Posts: 8
Topics: 3
Solve rating: 0
Joined: Thu Mar 09, 2017 11:51 am
Topics: 3
Age: 52
Gender: None specified
National Flag:
South Africa
Reason to use I2C:

(i) I want to build two ferduino-based controllers, the one using the PCF8575 (to add more IO ports as per your design), and the other controller is going to be much more minimalist - only using standard Arduino pins - thus using I2C will give me 2 extra pins that the multiplexor requires in UART mode, right?

reason no (ii) according to Atlas documentation I2C seems to be the prefered option to use, and a working solution should also be good option for other Ferduino users that may contemplate using I2C in future.

Thankyou for your example code. I will also wait for feedback as you have requested from Patrick..

I will only be able to continue testing this later, as I am going to be out of office for two days. I will leave this post open for now?
Last edited by Stefan Stoltz on Mon Mar 20, 2017 2:16 pm, edited 1 time in total.

Post Number:#6 Post Mon Mar 20, 2017 1:56 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

(i) I want to build two ferduino-based controllers, the one using the PCF8575 (to add more IO ports as per your desing), and the other controller design is going to be more minimalist - and here I need extra pins on the Mega- thus, using I2C will give me 2 extra pins that the multiplexor requires in UART mode, right?


No, 4 pins (14 - 17). I think for I2C mode only SDA and SCL are needed.

I will only be able to test your code later as I am going to be out of office for two days..


My sample code doesn't work in I2C mode it's for UART mode.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#7 Post Mon Mar 20, 2017 2:20 pm
Posts: 8
Topics: 3
Solve rating: 0
Joined: Thu Mar 09, 2017 11:51 am
Topics: 3
Age: 52
Gender: None specified
National Flag:
South Africa
a yes you are right, if using I2C, it will free up 4pins!

and yes, you are right again, I confirmed with Patrick that for I2C only SDA and SDC (in addition to 5v and Gnd) are required, and is the way I hooked it up to the Mega.

Post Number:#8 Post Thu Mar 23, 2017 11:57 am
Patrick Meister Random avatar
Hi there - sorry I'm a little late to the party here ;)

It looks like you got it all working? If there are any open questions, feel free to ask here or by email.

Patrick

Post Number:#9 Post Thu Mar 23, 2017 12:10 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Can you give some help to adjust this code to work in I2C mode?

https://github.com/FernandoGarcia/Ferdu ... ps_EZO.ino

On setup there only this line to change:

https://github.com/FernandoGarcia/Ferdu ... up.ino#L16

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron