CHIP computer: I2C bus – AD7415 temperature sensor

CHIP computer contains I2C bus. You can connect a lot of sensors like temperature sensors, magnetometer, accelerometer. The sensors have to contain I2C bus of course.

In this article, I show you how to do it.

Articles about CHIP computer:
CHIP computer: first sight and comparison with Raspberry Pi Zero – pizero
CHIP computer: connection to WiFi, SSH, UART
CHIP computer: speed of USB, WiFi, current consumption and pictures from thermal image
CHIP computer: flashing OS, python, LED and blinking of LED after boot
CHIP computer: USB webcam
CHIP computer: I2C bus – AD7415 temperature sensor

You can use these steps for another SBC like Raspberry Pi, Banana Pi, Cubieboard, NanoPi and more.

At first, install i2c-tools
sudo apt-get update

sudo apt-get upgrade
sudo apt-get install i2c-tools

Connect device (I have temperature sensor AD7415 with 0x4A address)

If you don’t know the address of I2C device, use this command. It finds all address which is connected to CHIP computer.
sudo i2cdetect -y -r 2

2 – number of I2C bus.

Temperature:
sudo i2cget -y 2 0x4a

I made easy bash script which sends data to http://tmep.cz

Download of bash script here. If you use tmep.cz, fill your domain to bash script.

You can make crontab with this bash script.
sudo crontab -e

Add:
*/5 * * * * /PathToScript

Script will be execute every 5 minutes.

Share the article:
Show your
Maker soul!
Buy a T-Shirt
Coffee for Chiptron
Give a boost to the next article

Related Articles

Do you have any own weather station? Check this article. Here is a short list of interesting sensors. What kind of sensor do you use? Temperature, humidity ot pressure sensor? You can improve your weather station (meteostation). Sensor of temperature,…

BigClown, popular IoT platform, offers a lot of TAGs (board with sensor) and modules, but I still had missed versatile board for connection of cheap sensors from ebay and aliexpress – e.g. BMP280, Si7021 or SHT31. Notice: HARDWARIO s.r.o. doesn’t…

The fourth part of STM32duino tutorial we will check the I2C bus. We connect the temperature and humidity sensor Si7021 to default I2C and also to alternative connection of I2C bus. Note: I2C on STM32(G071) was tested on 12.6.2023 with…

In today article about Orange Pi Zero I want to show you how to blink of LED, measure the temperature by AD7415 sensor, which communicates through I2C and at the end we send some data to NRF24L01 through SPI. I…

How you could see on social networks, I recieved CHIP computer. Very popular kistarter project. But I would like to show comparison between CHIP computer and Raspberry Pi Zero – pizero. You find some important articles and pictures in this…