[[DIY Electronics]] -Contents #contents *Summary [#f0a0b25e] > This section discusses applications of AMI602 (G² motion sensor 6-Axis type), a 6-Axis motion sensor.~ AMI602 is a product of Aichi Micro Intelligent Corp. The sensor is put on a DIP16 size breakout board~ for better handling. AMI602 can be easily accessed from PIC/AVR and other one-chip micro computer~ by I²C path. In this section, two examples are introduced. One example uses the module with a PIC~ microcontroller, and the other is to make the module become a part of shield for Arduino.~ -Manual of AMI 602 Breakout module (in Japanese &ref("ami602_readme.pdf");)~ -Data sheet of AMI 602 (in English &ref("ami602e.pdf");)~ > Please do not contact with Aichi Micro Intelligent Corp for technical questions and/or supports. The~ company does not support AMI602 Breakout module. (AMI602 Breakout Module is a product of~ BeatCraft, Inc. If there are any questions and concerns, please submit to bc9dev.)~ *** About VID voltage [#kae9f3e8] > - Extra information form Aichi Micro Intelligent Corp.~ According to the recommended operating conditions listed on the data sheet of section [8], the recommended operating condition of VID is from 1.65~VDD (Typ. 1.8V), but there is a report that the some products use the sensors at the range between 1.65~2.4V. It is true that a sample schematic diagram notes VID = 3.3V, and several sensors tested at Aichi Micoro Intelligent's office have worked well at VID = 3.3V. Just reminder that if the sensor is operated at such level of voltage , it will be considered as outsides of the guaranteed operating conditions. Since the absolute maximum ratings of the sensor are between -0.3V and + 4.0V, the sensor does not brake down immediately. However, it will not work correctly. Please set VID is lower than 2.4V as using the sensor. ** A sample with PIC 24FJ64 GA002 [#bea7b7cf] > -Schematic Diagram -- PDF &ref("bc10-002-0001.pdf"); -- OrCAD &ref("BC10-002-0001.DSN"); --- On the schematic diagram, DNI indicates that parts are not actually installed. C10 is added~ when the fluctuations of low frequency, which is generated form power supply are quite large. --- C10 and C11are electrolytic capacitors, and other capacitors are ceramic capacitors. Especially,~ C3 should be the same type of capacitor as X5R or X7R . --- The early version of PIC 24FJ64 GA002 cannot communicate by I2C1 correctly. --- The early version of PIC 24FJ64 GA002 cannot communicate through I2C1 correctly. --- In some LCD character displays, Vss is defined as Vdd and vice versa. Please be careful as~ using some LED character display other than SC2004CS.display series. --- To use backlit LCD character display, please be careful with the electrodes of the backlit LED. > - Sample Source Program &ref("MPLAB.zip"); -- This program uses MPLAB IDE and MPLAB C Compiler for PIC24 developed by Microchip Technology Inc. -- PICkit3 is employed as a debugger. --- Register and compile the source file, which is created from unzipped compressed file. Then, write~ into the PIC. --- The sample program is quite simple. Initialize the sensor and display the outcomes. --- The serial port says 11500 bps, 8bit, None party, No hardware flow, and it outputs the debug~ messages. ** A Sample with Arduino [#k4b9c1f1] > - Schematic Diagram AMI602 Breakout -> Pin # of Arduino AMI602 1: -> Arduino A5 AMI602 2: -> 2V (generated from 5V by power circuit) AMI602 3: -> Arduino A4 AMI602 4: -> Arduino D4 AMI602 6: -> Arduino D6 AMI602 7: -> Arduino D7 AMI602 9: -> Arduino GND AMI602 10: -> Arduino 3V3 > VID of AMI602 is from 1.65 V to 2.4 V, the level shift is required. ~ #ref(./AMI602_sch.png,50%); ~ - Sample Source Programs -- Arduino side &ref("AMI602_20100708.zip"); --- Decompress the file, open up the decompressed file in Arduino IDE. Then upload it to Arduino. ~ -- Processing side &ref("AMI602PC_20100708.zip"); --- Unzip the file, open up the file in processing. Then execute the program. --- Use this file with the sample of Arduino side (AMI602.zip). --- To Depend on its environment, change the configuration of the serial port. --- To utilize the outputs of 3-axis magnetometer, the program can calculate and display the direction. ~ #youtube(uLPEP_BlK5s,left); ~ ** AMI602 Arduino Shield [#dc8d2e06] #ref(./AMI602_SHIELD.jpg,100%); ** List of AMI602 Arduino Shield parts [#zf43b912] #ref(./AMI602parts.jpg,35%); >>>(Click for larger image)~ LEFT: |No.|Name|Quantity|h |CENTER:1|Ceramic Capacitor 0.1μF |CENTER:1| |CENTER:2|Regulator LM317LZ |CENTER:1| |CENTER:3|Capacitor 1μF |CENTER:1| |CENTER:4|Resistor 10KΩ |CENTER:6| |CENTER:5|Resistor 5.1KΩ |CENTER:1| |CENTER:6|Resistor 2.4KΩ |CENTER:1| |CENTER:7|Resistor 1.5KΩ |CENTER:2| |CENTER:8|Resistor 1KΩ |CENTER:2| |CENTER:9|Resistor 330Ω |CENTER:1| |CENTER:10|MOSFET BSS123 |CENTER:3| |CENTER:11|Pin Header 40x1 2.54mm |CENTER:1| |CENTER:12|Shield Body |CENTER:1| * Reference [#p82bc609] - Aichi Micro Intelligent Corp homepage (in Japanese) --http://www.aichi-mi.com/index.html * Reference History [#zbda35bc] > 2010/08/26 This article is initially uploaded.~ 2010/09/27 The information of AMI 602 based Arduino shield is added.~