Go to advanced search

by suvajitb1
Sun Oct 01, 2017 6:20 pm
Forum: Automation, sensing and robotics
Topic: SCADA/HMI
Replies: 0
Views: 747

SCADA/HMI

Hello everyone, I'm a beginner with raspberry pi and also to Python language. I'm trying to use the raspberry pi 3 for industrial application and for that I've connected quite a few sensors (temperature, humidity, co2 etc.) I'm successfully able to get reading from the individual sensors and wrote a...
by suvajitb1
Tue Sep 19, 2017 5:55 pm
Forum: Python
Topic: raspberry pi data logging
Replies: 6
Views: 4025

Re: raspberry pi data logging

Hello Everyone I'm also facing a syntax problem while running this similar data logging script: import os import time from time import sleep from datetime import datetime file = open("/home/pi/data_log.csv", "a") i=0 if os.stat("/home/pi/data_log.csv").st_size == 0: file.write("Time,Sensor1,Sensor2,...
by suvajitb1
Thu Sep 14, 2017 4:34 pm
Forum: Automation, sensing and robotics
Topic: Sensair CO2 Sensor
Replies: 3
Views: 1403

Re: Sensair CO2 Sensor

so I would say the "resp = ser.read(7)" is timing out before it receives 7 bytes. I would add the line "print len(resp)" just after the read so that you can see how many bytes have been read. U may need to increase your time out You are right. The port in unable to read any data. The len of the str...
by suvajitb1
Wed Sep 13, 2017 7:33 pm
Forum: Automation, sensing and robotics
Topic: Sensair CO2 Sensor
Replies: 3
Views: 1403

Sensair CO2 Sensor

Hello I'm using the following code to read a CO2 Senseair S8 sensor from the Serial port of my Pi3: import serial import time #RPi pin connections: #pin 6 GND #pin 4 5v #pin 8 TXD: UART data to S8 #pin 10 RXD: UART data from S8 ser = serial.Serial("/dev/ttyAMA0",baudrate =9600,timeout = .5) print " ...

Go to advanced search