Tagged Questions
1
vote
1answer
36 views
Arduino I2C level conversion
I'm working with Arduino Uno (Rev 3) to interface a DRV2605 haptic driver to control several ERM/LRA motors using I2C.
As I look at examples on the web, I see everyone uses a I2C level conversor to ...
0
votes
0answers
36 views
9 DoF Sensor Accelerometer Readings Inconsistent
I have the following sensor stick: https://www.sparkfun.com/products/10724
It has an accelerometer, gyroscope, and magnetometer.
I have connected it to an arduino and am reading the accelerometer ...
0
votes
3answers
414 views
Can I do without I²C pull-up resistors?
I am trying to produce a small circuit, and I am looking to reduce the part count. I recently added an I²C EEPROM which is used once when the system boots up, along with this EEPROM I added two ...
0
votes
0answers
20 views
Lockup while evaluating Wire.requestFrom function (Arduino) [migrated]
I am currently working on a Arduino project that combines an InertiaOne IMU sensor board (from Atmel), with an Arduino UNO and two motors driven by a Makeblock driver board. All sensors communicate ...
3
votes
2answers
240 views
Can I use 74HC14 or NPN transistor instead of MOSFET as level shifter
I have SN74HC14 or BC548 / 2N2222 transistors. I need level shifter for I2C between arduino and RPi.
Here's simple circuit from the internet
Problem is I don't have any MOSFETs. Can I use NPN ...
2
votes
1answer
273 views
Arduino Uno to ATtiny44A I2C communication
I tried to make I2C communication from Arduino Uno to ATtiny44A.
Uno as Master and Transmitter code:
...
1
vote
2answers
67 views
Arduino I2C and multiple devices
I have created two projects, one with a Tiny RTC and another one with the BM180 sensor to read barometric pressure and temperature. Now I want to combine both.
I'm trying to connect both - the ...
3
votes
4answers
153 views
Connecting a 9V IC's I2C interface to 3.3v Arduino DUE
I need to connect a TDA7312 to Arduino DUE's I2C interface via SDA/SCL.
TDA7312 operates on 9V, Arduino DUE is 3.3v. Is it possible to safely connect it, without burning it? Or what should I use ...
2
votes
1answer
210 views
Problem using DS1337 - RTC
I am trying to use a edited version of the library given at this link. I basically changed some of the included file and some of the changed function of the wire.h library. Though I am not a hardcore ...
1
vote
0answers
55 views
MCP23017s and arduino problems
I'm not native English speaker, so forgive me my bads.
Ok. Here's the deal.
In my Arduino UNO I need more outputs and inputs. I bought 3 MCP23017s. One of them for receive states from 8 ...
2
votes
1answer
103 views
Is it possible to use a digital pressure sensor with a ATtiny4313?
I have a pressure sensor as follows, tested and works great with the Arduino Uno:
Output is digital through SCL/SDA.....
Will I be able to use this directly with the ATtiny4313 coding with Arduino ...
0
votes
0answers
313 views
How to connect Arduino Uno to PIC18F4620 using I2C
Anyone have an idea about how to connect Arduino Uno to PIC18F4620, the following circuit illustrates what I mean:
I want to use Arduino as a master and 2 PIC18F4620 microcontrollers as slaves, the ...
1
vote
1answer
152 views
I2C bus and Arduino Uno
I'm not really sure if this is the correct place but here we go.
I'm in the process of creating a robot for Uni and the hardest part for me is the hardware side of it, specifically the electronics. ...
0
votes
1answer
533 views
PCA9685 (12-bit PWM I2C LED controller) and Arduino
I tried to get a PCA9685 to work at the moment I am using an Arduino with this library to test it but I can't get it to work. I have the Arduino Uno rv3 I wired the scl of the Arduino with the scl of ...
0
votes
1answer
118 views
MCP23017 Failing After Several Minutes?
I just bought an MCP23017 port expander and hooked it up to my an Arduino card. I used the sample code to turn on four LEDs when the program launches. Works great, except that after several minutes ...
0
votes
1answer
134 views
MCP23017 in series
I have a hand full of MCP23017 (16 bit multiplexers/ I/O Expander) but I can only get 8 IC on the bus due to the limit of address but I need 200 pins (about 13 ICs) for a 8*8*8 RGB cube
and was ...
1
vote
2answers
335 views
Can ATmega88 be run at 3.3V with internal clock?
I want to use a few ATmega88s with Arduino bootloaders to act as I2C stepper drivers and temperature controllers that will interface with a Raspberry Pi. The thing is just that it seems the RPi ...
1
vote
4answers
454 views
i2C : pull-up resistors “design pattern”, Shielded cable and connector?
I'm designing an arduino based board which will uses I2C port a lot. I want to be able to connect several slave devices, and/or connect several mother boards together (at least 4 would be great). The ...
1
vote
3answers
688 views
Multiplexing I2C devices with MOSFETs
Ok, I understand similar questions have been asked in the past, please bear with me. Here is my problem, I have 2 I2C devices to be connected to a single I2C bus. They happen to be the same component ...
0
votes
1answer
264 views
i2c + 7 segement serial display + ATtiny85
I have a project that requires a 7 segment display and I was trying to get away with using the smallest micro controller possible.
Does anyone see any problems with connecting an ATtiny85 to a 7 ...
2
votes
2answers
1k views
How to connect ATTiny45 to Arduino via serial/spi/i2c and send data?
I am trying to create a smart alarm system for my house. I want to have one arduino as the master and several other AtTiny's as slaves to collect data as temperature, moisture, gas concentration, ...
2
votes
3answers
3k views
How to add additional I2C sensor module on Arduino
I have tried the GY-521 sensor on Arduino by using the guide from (http://playground.arduino.cc/Main/MPU-6050). It worked well. Can anyone guide me on how can I add another GY-521 module please? I am ...
0
votes
0answers
74 views
Altimeter module issues “i2c bad”
My altimeter module seems to go bad every once in a while and I can't figure out why. Seems like any minor impact to the module stops it.
It says "i2c bad" often and then seems like it works later? ...
1
vote
0answers
550 views
Adafruit SSD1306, I2C, ATmega1284p: OLED Display askew/misaligned
Another strange problem here. The setup:
Adafruit SSD1306 OLED board connected to an ATMega1284p via I2C.
Since I "upped" my 1284 to 8MHz (which I needed to to reliably talk to my temperature ...
1
vote
1answer
691 views
1-Wire DS18B20 on mighty 1284p can't find my sensors, same sensors work w/ Duemilanove
I have uploaded the DS18x20 Temperature example sketch (unaltered, except I tried multiple pins for the I2C communication) to my proven Duemilanove and my ...
2
votes
1answer
445 views
should I use 2 SPI devices on Arduino UNO/PRO or 2 I2C devices?
I am using a microSD breakout board and the accelerometer ADXL345 https://www.sparkfun.com/products/9836.
each one alone works perfectly fine, but once I put both (sharing pins 11,12,13, but with ...
2
votes
3answers
839 views
Strange I2C behavior: sometime it works, some time it doesn't
I am using Arduino Ethernet with PoE and Arduino Uno boards. In recent days I implemented a working I2C bus by using the Wire library and all it seemed almost to ...
1
vote
1answer
318 views
I2C with DS1307 hang after end of transmission
I've got a home brewed RTC with DS1307. I've put two pullup resistors on SDA and SCL lines, connected them to the Arduino 5 and 6 pin respectively. I've also provided a backup battery since I read ...
0
votes
2answers
665 views
I2C temp sensor and an Arduino wifi shield not working together
I am using an arduino wifi shield and a TMP102 with an arduino uno rev2.
With boards older than rev3 you have to add a jumper from the 3.3V to the IOREF pin for the wifi shield, see here: ...
2
votes
2answers
433 views
Sync 12 Arduinos - I2C vs Serial
I've been given 12 arduinos (Mega) and 12 breakout boards (custom built. they pump up the output of the digital pins to 12v @120mA) to control around 300 LEDs. I'm using a pseudo PWM library to fade ...
2
votes
1answer
275 views
TLC59116F (i2c led driver) everything seems ok but LED doesn't work
I'm trying the LED driver TLC59116F with an arduino UNO R3. This IC is a i2c controllable LED driver with PWM and 16 outputs. The registers seem all loaded fine, here's a print of their contents:
...
1
vote
1answer
431 views
Multiple masters for i2c device
I have a DS1307 RTC chip that I want to interface with multiple masters.
One, an ATMega chip, will only ever really need to pull time data from the chip and the other (probably just an ATTiny) will ...
4
votes
3answers
303 views
I2C wiring help
I have 64 i2c devices wired together. They all seem to work correctly until randomly between 30s-1m of sending signals, the bus will hang.
Here is how I have it wired:
It's currently wired as ...
5
votes
4answers
2k views
DS1307 power failure problem
The DS1307 has two power sources: the main VCC source and the backup battery. The latter will power the DS1307 when the main power goes down so the clock can keep ticking.
I am facing a problem with ...
0
votes
2answers
564 views
How to test an atmega (arduino) i2c network
First of all sorry for my bad English and for this "theoretical" question on how is the best way to do things. I'm just out from university and no-one ever told me how problems can be resolved in a ...
1
vote
1answer
702 views
communication between 2 arduino crash when external power supply is plugged
i have one arduino mega that communicates with one arduino leonardo.
the leonardo controls some motors (mega tell to the leonardo how many step to do... leonardo is a coprocessor for the motor in ...
2
votes
4answers
2k views
ATTiny25/45/85 as I2C master AND slave
I'm still trying to wrap my head around I2C as well as the ATTiny. I've found plenty of tutorials on how to use the tiny as an I2C slave as well as master, but is it possible to use it as both at the ...
2
votes
1answer
648 views
Multiple 4-Digit 7 Segment Displays with Arduino
I have 3, 4-Digit 7-Segment Displays from Adafruit, and the included docs/ libraries say I should connect the display to pins A4 & A5. However, I have three of the displays, so I am looking for a ...
5
votes
3answers
6k views
multiple arduino communication (1 master, n slaves)
I would like to develop a master/slave network that consists of:
1 Arduino master that reads sensors and generates velocity ramp profiles based on the sensor signals and then sends those ramps to ...
2
votes
1answer
965 views
Problem writing to MCP23017 I/O Expander registers (i2c)
I am creating a basic cable tester device and using I2C to interface with two MCP23017 I/O expander chips.
In my code each MCP23017 slave has its own address and I can communicate with both of them ...
2
votes
2answers
492 views
Arduino to CPLD to toggle an LEDs using I2C
I have a a CPLD (Lattice MachXO2) that echos a signal from an Arduino to turn on an LED.
Arduino:
...
0
votes
2answers
2k views
LCD Programming with Arduino
I'm trying to get my LCD to display "Voltage= (variable)". I have it programmed to write the text and I have a pot wired to my arduino and I'm trying to get a voltage number to come after the equals ...
3
votes
1answer
6k views
How to make Arduino do High Speed I2C
I wired up two MCP4725 DAC's to my Arduino and wrote a little demo sketch to test functionality. The sketch draws a Lissajous curve on my oscilloscope.
The output frequency is a bit disappointing ...
2
votes
1answer
859 views
Soft i2c with Sensirion SHT21 sensors on Arduino Mega
I have tried checking with an oscilloscope on the analogue pins when the sensor is plugged in and I don't seem to get anything as I normally would.
The hardware i2c channel works just fine on the ...
2
votes
1answer
8k views
How to connect multiple i2c-interface devices into a single pin A4 (SDA) and A5 (SCL) on Arduino?
I want to add a real time clock module into my little project. I want to display both time and date on my existing i2c 2x16 LCD module.
Both i2c-interface real time clock module and 2x16 LCD module ...
4
votes
2answers
748 views
DS1307 RTC Debug
I'm having trouble with getting the DS1307 RTC to work. I'm talking to it via an Arduino, and I'm just trying to get an example sketch to work. I've tried two different libraries - one from Ladyada, ...
4
votes
1answer
1k views
Data from BMA180 accelerometer into arduino is sporadic
I've been trying to get a BMA180 (I'm on my second one already) to send a continuous stream of accel data via a serial port (eventually bluetooth but that's a problem for a different day). I've looked ...
1
vote
1answer
1k views
BMP085 and Humidity and Temperature Sensor with arduino
I am doing a project that requires me to use a BMP085 (with breakout) and a humidity/temperature sensor (with Breakout).
I am trying to attach both of these to the arduino uno through two analog ...
2
votes
2answers
2k views
What is the speed of I2C for AVR communication?
I'm doing a project where I'll have a lot of slave ATtiny's and one master controller (either an Arduino/ATMega or an mbed). I assume the ATtiny with it's low clock speed of 10MHz will be my ...
2
votes
1answer
1k views
How do I read I2C memory with an Arduino?
I have HH100D humidity sensor. It outputs a frequency signal, which I know how to handle. However, it also has a small EEPROM with calibration values that is available via I2C. Those values are ...