BMP280 Python Code | Raspberry Pi | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
BMP280 Python Code
No permission to create posts
October 16, 2018
2:14 am
Avatar
pgs32
New Member
Members
Forum Posts: 1
Member Since:
October 16, 2018
sp_UserOfflineSmall Offline

Hi

Can anybody help, I am looking for a bit a of working Python code that will upload temperature and pressure data from a Raspberry Pi 3 to my Thingspeak channel, if anybody could point me in the right direction I would be very grateful.

October 16, 2018
7:20 am
Avatar
rw950431

Top
Members
Forum Posts: 279
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline
July 19, 2019
6:29 am
Avatar
gary
New Member
Members
Forum Posts: 1
Member Since:
July 12, 2019
sp_UserOfflineSmall Offline

BMP280 should work same like BMP180 with Raspberry PI, only difference I found with BMP280 is that it has two extra pins for SPI communications. But you can use I2C with BMP280 and use it with Raspberry PI same like BMP180.
And you dont need to use any library you can extract the output of BMP280 by importing importing c_short python code and reading the register values like below:

def convert1(data, i): # signed 16-bit value
return c_short((data[i]<< 8) + data[i + 1]).value

you can read this source link for using BMp180 with Raspberry PI from where I got this..
https://iotdesignpro.com/projects/iot-based-raspberry-pi-weather-station-using-dht11-and-bmp180-sensor

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

swatiiot, kalyanigaware16@gmail.com, Romi, Drakan01, majidkhan7, atharvganla

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457