BMP280 Python Code | Raspberry Pi | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

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
New Member
Forum Posts: 1
Member Since:
October 16, 2018
sp_UserOfflineSmall Offline


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

Forum Posts: 279
Member Since:
January 29, 2014
sp_UserOfflineSmall Offline
July 19, 2019
6:29 am
New Member
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..

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
32 Guest(s)

Currently Browsing this Page:
2 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:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457