Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Problem for read analog input with my controllino

Problem for read analog input with my controllino 6 years 7 months ago #9091

  • Stryker
  • Stryker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hello,

I need your support because i cannot read a sensor through analog input with controllino (based on arduino mega2560) : controllino.biz/

I had follow tutoriel with marc's but neither result.

Help by pinout for controllino mega, i was respect the number 54 for the input a0 :

github.com/CONTROLLINO-PLC/CONTROLLINO_L...master/Controllino.h

Can i to load a another sketch on my system that this? :

github.com/siamect/proview/blob/master/o.../pwr_arduino_uno.ino


You can view how i make setup for my entry with a potentiometer :


proviewcapt.png



ty
Last Edit: 6 years 7 months ago by Stryker.
The administrator has disabled public write access.

Problem for read analog input with my controllino 6 years 7 months ago #9092

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi,

Representation in the channel object should be set to Int16, but I don't know if that really matters.
The Ai number for Arduino starts at 0 so it's possible that you should set Number to 0 for the first Ai instead of 54.

/Claes
The administrator has disabled public write access.

Problem for read analog input with my controllino 6 years 7 months ago #9093

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Stryker,

I have tried a Controllino many months ago.
It was a pain in the *ss to get it working.
What I can remember I used the standard proview arduino sketch in combination with a Raspberry Pi.
I had a communicayion problem (stty / baud rate) but can't remember the details.
Another problem is there is no forum/community/support behind the Controllino and I am not active with Proview lately.

But somewhere I have, without doubt, a SD-Card with a working version Controllino Mega / Proview version.


/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 6 years 7 months ago by marc. Reason: found the SD...
The administrator has disabled public write access.

Problem for read analog input with my controllino 6 years 7 months ago #9094

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Ok.

Found the Raspberry Pi SD....
It's running Arch Linux with Proview 5.3.1-1, I have build from source.

Uploaded with the standard Arduino IDE, with board = Mega2560, to the Controllino with the sketch from:
maba.dk/arduino.ino and baud rate 57600.

With stty setting boot script:

stty -F /dev/ttyACM0 10:0:8be:0:3:1c:7f:15:1:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
chmod 777 /dev/ttyACM0

But I don't know if this sketch is running on a newer version of Proview...

The Ai is, like Claes suggested, for Ai0 number 0

Good luck,

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 6 years 7 months ago by marc.
The administrator has disabled public write access.
The following user(s) said Thank You: Stryker

Problem for read analog input with my controllino 6 years 7 months ago #9095

  • Stryker
  • Stryker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Thanks a lot, i try it now, and i come back here !
The administrator has disabled public write access.

Problem for read analog input with my controllino 6 years 7 months ago #9096

  • Stryker
  • Stryker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Great ! The sketch run on debian with version 5.5.0-1 of proview, my sensor works perfectly, on the entry 0 !

Thanks a lot Marc and Claes ;-)
Last Edit: 6 years 7 months ago by Stryker.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.013 seconds