Raspberry Pi control an arduino via i2c, web interface Django, Python

preview_player
Показать описание
How to control an Arduino with a Raspberry Pi ?

You can use I2C protocol.
You can also use a web interface developped in Django, web framework wrote in Python.

You can see in this video an user who control 5 leds by clicking in a web interface hosted by a Raspberry Pi.
The Raspberry Pi send the information to the Arduino via the I2C protocol and the Arduino managed the five leds.

The data sent to the Arduino is a binary word of 5 bits which represents the five leds like this, 01101.

You can donwload the source code of the Django project:
Рекомендации по теме
Комментарии
Автор

great! I am working on a Automatic Irrigation System based on Arduino, And I want to control the system via internet. this video helps a lot! thx for sharing

VencentYoung
Автор

Could you give me a sample code ? I would like to build web interface with hardware

thichanonromsaiyud
join shbcf.ru