Forum Home › Forums › Rapid SCADA on Linux Controllers and Raspberry Pi › Raspberry Pi's value to Rapid Scada
- This topic has 10 replies, 3 voices, and was last updated 6 years, 4 months ago by brandy65.
-
AuthorPosts
-
January 3, 2018 at 6:41 am #3006tyzchildParticipant
Hi, my project need me to send Raspberry Pi’s sensor value to SCADA software, which I can’t find a way to do it because the values is from ADS1115 Analogue to Digital converter and not PLC.
January 3, 2018 at 1:54 pm #3010MikhailModeratorHi,
Do you mean that you measure value by GPIO of RPi? In this case, you can use Raspberry Pi 3 Driver available at http://demo.rapidscada.net/plugins/Store/Store.aspxJanuary 4, 2018 at 4:15 am #3012tyzchildParticipantHi, The project only required to monitor the values taken from Raspberry Pi, it is not going to control the GPIO pin. I am confused of using Rapid Scada to get the value from Raspberry Pi.
I am using Raspberry Pi model 3b, and I get the temperature of a room using a temperature sensor, the sensor connecting with a analogue to digital converter then connect to Raspberry Pi.
I am able to have the values every 10 second, is there a way to send those data to Rapid Scada? Thank you in advance.
January 4, 2018 at 8:27 am #3016MikhailModeratorHi,
Please provide more information:
How the sensor is connected to RPi?
What communication protocol is supported by the sensor?
Do you use your own software deployed on RPi to get data from the sensor?January 5, 2018 at 3:34 am #3017tyzchildParticipantHi,
1. I have the analogue sensor input to RPi, but RPi needed ADC to convert the sensor input into digital signal, hence the sensor is connected with ADC, and then the ADC connected with RPi. The ADC is connected as shown:
ADS1x15 VDD to Raspberry Pi 3.3V
ADS1x15 GND to Raspberry Pi GND
ADS1x15 SCL to Raspberry Pi SCL
ADS1x15 SDA to Raspberry Pi SDA2. So the sensor values is stored in specified address in RPi, so I can send those values to anywhere freely, hence I am wondering is there any way to direct sending these value to Rapid Scada using python code or is there alternative way? Thank you
January 5, 2018 at 8:34 am #3018MikhailModeratorHi,
There are different ways to solve you task:
1. Develop a small driver for Communicator using C# that will read the values.
2. Create an application that provides the measurements by Modbus, SNMP or MQTT protocols. Then read the data by existing Rapid SCADA drivers.
3. Send data directly to SCADA-Server by internal protocol of Rapid SCADA based on TCP. I can provide the protocol description.
January 6, 2018 at 7:31 am #3021tyzchildParticipantHi, I think the 3rd way is more easy for me, can you provide more information or briefly describe what should I do?
Also I will need to have Rapid SCADA to run on my RASPi, but I only tried it on laptop, so based on Rapid SCADA website, I need to install it on RASPi first, then configure it on laptop and copy certain file to RASPi ? Thank you
January 6, 2018 at 9:49 am #3022MikhailModeratorHi,
See the implementation and the protocol description. Please use Google Translate for the description.I need to install it on RASPi first, then configure it on laptop and copy certain file to RASPi ?
I think, it’s easier to test the software on desktop first then copy to RPi.
January 9, 2018 at 3:32 am #3038tyzchildParticipantHi, acutally, I am just going to use the Raspi alone to read values and host Rapid Scada server, so in this case,is it using the first way to do it will be better?
January 9, 2018 at 2:02 pm #3039MikhailModeratorHi,
Choose the way that is more easy for you according to your experience and skills.July 11, 2018 at 10:02 am #3980brandy65ParticipantHi, I have been doing something same by using ADS1115 https://store.ncd.io/product/ads1115-16-bit-4-channel-precision-analog-to-digital-converter-i2c-mini-module/ sensor which is connected with I2C shield If you need any help with basic code then check out this link (for a single channel)
https://github.com/ControlEverythingCommunity/ADS1115/blob/master/Python/ADS1115.pyHope this might help you.
-
AuthorPosts
- You must be logged in to reply to this topic.