Tags:
view all tags
---+ Additional Sensors The sensor kit was originally designed to be used with the Arduino, an Italian micro-controller design very popular with hobbyists. The Arduino uses Atmel micro-controllers with internal flash memories, which can be programmed from a PC through USB. A complete GUI based Software Development Kit (SDK) is available containing editor, cross-compiler and flash programmer. The Arduino is delivered with a boot loader pre-installed which helps in flash programming. Without this boot loader and external flash programmer is needed. The Arduino is much less powerful than the Raspberry Pi but has similar interfaces to the outside world: GPIO, SPI, I2C. In addition to the Raspberry the Arduino has 6 analogue inputs with and analogue to digital converter on chip. This allows to read analogue signals without additional hardware. The sensor kit contains 2 sensors with analogue to digital conversion on the sensor chip (DS18b20 and DHT11) while for other analogue signals an additional external ADC is needed. The additional sensor boards are all based on the !I2C bus and include * The [[PCF8591]] 8 bit A/D and D/A converter<br /> The ADC has 4 multiplexed input channels and 2 DAC channel and it includes a potentiometer, a photo resistor and a thermistor, which can be connected to the ADC inputs through jumpers. * The [[ADS1115]] 16 bit ADC<br />This is a high resolution ADC again with 4 multiplexed input channels * The [[MCP4725]] Digital to Analogue converter * The [[DS1307]] Real Time Clock combined with the AT24c32 serial EEPROM * The [[BMP180]] Temperature and Barometric Pressure sensor * The [[HD44780]] LCD controller with a 2 x 16 character display and a PCF8574 8bit I/O expander for the !I2C bus * The [[3-axis inclination monitor]] * A [[stepping motor]] The Raspberry Pi uses !I2C bus 1 for communication with external !I2C devices. This can be seen in the /dev directory. Both libraries: [[http://wiringpi.com/][wiringpi]] and [[http://abyz.co.uk/rpi/pigpio/][pigpio]] provide access functions to drive the !I2C bus. The _i2cdetect_ command allows to see which !I2C addresses are in use. The screen dump below shows 2 devices connected to the !I2C bus on address 0x3f ( the pcf8574 I/O expander used to driver the hd44780 display driver) and 0x48 (the pcf8591 A/D and D/A chip). <img alt="i2cdetect.png" height="300" src="%ATTACHURL%/i2cdetect.png" title="i2cdetect.png" width="607" /> -- %USERSIG{UliRaich - 2017-02-01}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
i2cdetect.png
r1
manage
29.3 K
2017-02-01 - 11:59
UnknownUser
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r7
<
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r4 - 2017-02-05
-
uli
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
Embedded_Systems Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback