Загрузка страницы

I2C Part 2 - Build a I2C Sensor

In the second look at I2C, we will design our own I2C sensor. We’ll also look at the protocol used to exchange data on the I2C bus.

Full article with code at https://dronebotworkshop.com/i2c-part-2-build-i2c-sensor/
More articles and tutorials: https://dronebotworkshop.com
Join the conversation on the forum: https://forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/
We are back working with the I2C bus, this time to examine the protocol used to exchange data on the bus. We will also look at the addressing scheme.

Then we will take four HC-SR04 ultrasonic distance sensors and create our own I2C sensor using them.

A lot of inspiration for this came from an excellent video by Andreas Spiess, the ”guy with the Swiss accent”. In his video, he created a 3-sensor device using an ATtiny85. You can check it out at https://www.youtube.com/watch?v=aLkkAsrSibo.

In my implementation, I used an Arduino Uno, but this is only to make development a bit easier. If I were to create a permanent version of this sensor I would probably use either an Arduino Pro Mini (which would also allow a 3.3-volt version to be created) or an ATmega328 chip.

Here is the outline of today's video:

00:00 - Introduction
01:26 - I2C Protocol and Addressing
07:14 - Ultrasonic Sensor Wiring and Testing
14:09 - Remote I2C Sensor Intro
19:21 - Remote I2C Sensor Code

While this sensor certainly could be improved upon it should serve to illustrate how easy it is to create your own I2C device.

You can get all of the code that I used in this video at https://dbot.ws/i2cpart2.

And, of course, if you haven’t subscribed to the channel please do me the honor of having you as one of my subscribers.

Thanks, I hope you enjoy the video!

Видео I2C Part 2 - Build a I2C Sensor канала DroneBot Workshop
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
20 апреля 2019 г. 19:42:22
00:33:47
Яндекс.Метрика