I try to plug 2 MCP9808 Temperature sensor on my Raspberry PI, but I think that it's not without a GPIO Expander, right ?
Only one MCP9808 is not a problem, but 2 is impossible without an GPIO expansion ?
https://learn.adafruit.com/mcp9808-temperature-sensor-python-library/hardware
Thanks for your answers !!
Related
I want my Raspberry pi to read the audio off of my main computer and then make some adafruit neopixel lights that I have connected change brightness in correlation to how loud the audio is. The coding (probably) will not be an issue, but I can not figure out how to get the Raspberry pi to read my sound card with a line-in input correctly. For reference, I am using a raspberry pi 4 and the sound card I am using is a ICUSBAUDIO7D.
hi i buy a raspberry 2 Model b with a TFT screen 2.2 and I can not configure it to use it as a display.
Can you help me on how to wiring to the gpio and how to configure the driver to see.?
Sorry for my English
I´m tried with notro´s kernel but only gets a whites scren.
I tell you in detail the components I am using:
Raspberry pi 2 model B v 1.1
Screen: TFT LCD ( Adafruit Chip Set ILI9341 or compatible) 2.2" TFT LCD
OS: 2016-05-27-raspbian-jessie
Thank you so much!!
I would like to know if is possible to use an MCP23017 16 bit I/O expander with a MCP3008 ADC and read the voltage with a Raspberry Pi 2. I want to use the ADC as an I2C device. I would like to do this so I don't have to run the program a 'root', so I'm thinking that running the ADC as an I2C device will fix this problem. I'm looking for help with how to wire the system as well as programming it. I'm using the Python 3 editor. The existing program I have will be used to plot a sine wave generated by a AD9850 DDS module who's signal is amplified and fed into a device. I want to measure this voltage. I know how to use a voltage divider, but am having trouble coming up with a way to read it. The measured voltage value needs to be stored as global variable that can be passed around the program. Right now I'm mainly concerned with not running the program as a root, turning the ADC into an i2c device, and storing the voltage as a global variable to be passed around in an existing program.
I have not worked with any kind of I2C TO SPI converter. Still, you can use some I2C to SPI bridges if they work, I just googled it, but that can cause wiring problems.
I can suggest you the same ADC MCP series with I2C interface.Thus, the further I2C connections with MCP23017 expander and then the Raspberry pi would be easy.You can go through various analog to digital converters that can be I2C interfaced with their codes in python or java for pi like MCP3425, MCP3426, MCP3427, MCP3428. You can easily find them or also check control everything as that would be easy to interface using I2C cables and adapters preventing connection or wiring problems.For codes: https://github.com/ControlEverythingCommunity?utf8=%E2%9C%93&query=MCP34
The following codes for MCP_23017 can also help you code the way you want easily with expander being connected to pi:https://github.com/ControlEverythingCommunity/MCP23017_16-Channel.
I think this would solve your problem!!
Thanks.
I´m having problems with the analog readings with the Edison Arduino Board
I had made a program with Node.js and mraa library. the Yocto version is the latest 2.1 and Intel XDK 1912
The circuit is made with one photocell, one analog temp sensor, one moist sensor, and a potentiometer which I don´t move the check the deviation readings. When one of the sensors change their measures the rest readings also change.
If I´m not wrong the readings are 10 bits., from 0-1023, I did´t use setBit() to change the value
Any hint?
Super long story short: is it possible to read from a UART at something close to 12 megabaud?
I have a high speed connection that I am trying to read from on a Raspberry Pi. At present, the Raspberry Pi (and as far as I can tell, the world of serial programming) has a maximum baud rate of 4 Mbaud, which I achieved by setting the Raspberry Pi's UART clock to 160 MHz.
However, I need a UART running at 12+ Mbaud to capture the data streaming in from my external source. The Raspberry Pi's terminos.h file specifies 4 Mbaud as the max baud rate for serial communication. Is there a way to get higher baud rates? Is the key ioctl from How can I set the baud rate to 307,200 on Linux??
Raspbian 3.6.11, Raspberry Pi rev2
Each UART has a hardware limit... If your hardware supports this rate, it's allowed... Verify it before.