Contents
What is the address on the mma8452q accelerometer?
The MMA8452Q features a selectable I2C address — just in case you’re running multiple MMA8452Qs on the same bus (or maybe you have an address conflict). To select the address, a pin on the accelerometer — “SA0” — can be tied to either power or ground.
How to hook up the mma8452q to Arduino?
Example Hookup — How to connect the MMA8452Q to the ubiquitous Arduino. This hardware hookup is used in the next section… Example Code — We’ve written an Arduino library to help make your Arduino sketch cleaner and easier to write.
When to use reset pin on Arduino ATtiny?
You can just normally use all pins except for the reset pin (pin 0). When you want to program the Attiny, you just connect the programmer. It will reset the Attiny through the reset pin and put it into ISP programming mode. At that point your code hasn’t run.
Can a digispark be used on an ATTiny chip?
In order to make use of all 6 non-power pins as I/O for the Trinket or Digispark, a “fuse” is set in the ATTiny chip which disables the RESET pin’s normal purpose of holding the chip in reset. This means you cannot pull RESET to ground and load a program the normal way.
What are the pins on an accelerometer breakout board?
The MMA8452Q Breakout Board breaks out a select few of the most important pins on the accelerometer. A little bit about each pin: Bi-directional data line. Voltage should not exceed power supply (e.g. 3.3V). Master-controlled clock signal. Voltage should not exceed power supply (e.g. 3.3V).
What’s the maximum voltage for an Arduino accelerometer?
Since the MMA8452Q’s maximum voltage is 3.6V, you’ll need to do some level shifting between your Arduino and accelerometer. Powering the accelerometer off the Arduino’s 3.3V rail is a good start, but you’ll also need to add some protection on the SDA and SCL lines.