Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
raspberry:dac_mcp4802-22 [2020/10/09 16:41] admin |
raspberry:dac_mcp4802-22 [2020/10/16 21:52] admin |
||
---|---|---|---|
Line 9: | Line 9: | ||
To connect the MCP 4802 to the Raspberry Pi connect the SPI pins of the MCP4802 like that:\\ | To connect the MCP 4802 to the Raspberry Pi connect the SPI pins of the MCP4802 like that:\\ | ||
- | {{: | + | {{: |
| | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | DIN | + | |
- | CS/ | + | |
{{: | {{: | ||
Line 26: | Line 24: | ||
Before using the Wiring object enable the SPI interface in: | Before using the Wiring object enable the SPI interface in: | ||
$ sudo raspi-config | $ sudo raspi-config | ||
+ | |||
+ | ---- | ||
+ | ==== with Commandline ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | to output some voltage: | ||
+ | $ echo -ne " | ||
+ | |||
+ | ---- | ||
+ | ==== with BCM2835 Library ==== | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ==== with WiringPi ==== | ||
+ | |||
+ | [[http:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
---- | ---- | ||
==== Links ==== | ==== Links ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[http:// | ||
+ | |||
---- | ---- |