Arexx JM3-RTC33 User guide

JM3-RTC33
ASURO RTC Module
©2014 AREXX Engineering and JM3 Engineering
www.arexx.com
For latest updates check www.jm3-engineering.com!
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 1
Impressum
©2012-2014 AREXX Engineering
Nervistraat 16 8013 RS Zwolle The Netherlands
Tel.: +31 (0) 38 454 2028 Fax.: +31 (0) 38 452 4482
This manual is protected by the laws of Copyright. It is forbidden to copy all or part of the contents without prior written authorization!
Product specifications and delivery contents are subject to changes. The manual is subject to changes without prior notice.
You can find free updates of this manual on
http://www.arexx.com/
“ASURO” licensed by DLR and “AREXX” are registered trademarks from AREXX Engineering. All other trademark are the property of their owners. We are not responsible for the contents of external web pages that are mentioned in this manual!
Information about limited warranty and responsibility
The warranty granted by AREXX Engineering is limited to the replacement or repair of the Module and its accessories within the legal warranty period if the default has arisen from production errors such as mechanical damage or missing or wrong assembly of electronic components except for all components that are connected via plugs/sockets. The warranty does not apply directly or indirectly to damages due to the use of the robot. This excludes claims that fall under the legal prescription of product responsibility.
The warranty does not apply in case of irreversible changes (such as soldering of other components, drilling of holes, etc.) of the module or its accessories or if the module is damaged due to the disrespect of this manual!
It cannot be guaranteed that the supplied software will satisfy individual expectations or will run completely error-free and without any interruption. Moreover the software can be freely changed and is loaded into the unit by the user. Therefore the user carries the full risk regarding the quality and performance of the unit including all software. AREXX Engineering guarantees the functionality of the supplied application examples provided the respect of the conditions specified in the data sheet. If the SAM-04-LAN or the PC software turns out to be faulty or insufficient, the customer carries all costs for service, repair or correction. Please note the relevant license agreements on the CD-ROM!
The exclamation mark attracts the attention of the user to important instructions that must be adhered to. If you make a mistake in this part, it can lead eventually to the destruction of the robot or its accessories and even endanger your health or that of your environment!
The "Information" symbol draws the attention to useful tips and tricks or background information. It is not always essential to understand everything but it is often very useful.
Symbols
The manual uses following symbols:
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 2
Safety recommendations
IMPORTANT:
Prior to using this robot arm for the first time, please read this manual thoroughly up to the end! They explain the correct use and inform you about potential dangers! Moreover they
contain important information that might not be obvious for all users.
- Check the polarity of the batteries or power supply.
- Keep all products dry, when the product gets wet remove the power directly.
- Remove the batteries or power when you are not using the product for a longer period.
- Before taking the module into operation, always check it and its cables for damage.
- If you have reason to believe that the device can no longer be operated safely,
disconnect it immediately and make sure it is not unintentionally operated.
- Do not operate the module in rooms or under unfavourable conditions.
- This module is equipped with highly sensitive components. Electronic components are very sensitive to static electricity discharge. Only touch the module by the edges and avoid direct contact with the components on the circuit board.
Normal use
This module is developed to use with robots, which allows you to determine basic behaviour patterns and reactions
of the robot to external influences yourself.
The module was developed as an experimental platform for all electronic technicians with interest in robotics. In
practical tests, it visualises the influence and effects of software parameters as well as physical parameters via the
corresponding sensor technology. Any use other than that described above is not permitted.
The product is not a toy and should be kept out of reach of children under 14 years of age! It may only be used in
closed, dry indoor rooms. The product must not get damp or wet. Use other than that described above can lead to
damage to the product and may involve additional risks such as short circuits, fire, electrical shocks etc.
Content
1. Impressum ................................................................................... 2
2. Safety recommendations ............................................................... 3
3. Introduction ................................................................................... 5
4. Manual ........................................................................................... 6
5. Schematic....................................................................................... 9
6. PCB Layout ..................................................................................... 9
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 3
ASURO Robot
Asuro xTend and Compass / Gyro module and display
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 4
Introduction
General purpose Real Time Clock (RTC) module - it can be directly plugged into the ASURO expansion port on the ASURO xTend - it can be stacked up with other ASURO extension modules like Compass/Gyro Module.
The module is using the Maxim DS1339 RTC with I2C bus interface. It is a low-power clock/date device with two programmable time-of-day alarms and a programmable square-wave output. The device provides the following clock/date information - minutes, hours, day, date, month, and year. The date at the end of the month is automatically adjusted for months with fewer than 31 days and corrections for leap year. The clock can operate in 24-hour or 12-hour format with AM/PM indicator. The built-in power-sense circuit detects power failures and automatically switches to the backup supply, maintaining time, date, and alarm operation. Internal low drop voltage regulator and rechargeable backup-battery make the design complete and easy to use. A Trickle-Charger capability of the DS1339 charges the back-up battery automatically during operation.
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 5
Manual
1. Connecting to ASURO xTend Board
The module will be simply plug in to the K3 connector on the ASURO xTend board. There is a voltage regulator on the module.
1.1. PIN OUT Barometer Module
PIN 1 = VDD PIN 2 = n/c PIN 3 = SQW-INT PIN 4 = n/c PIN 5 = n/c
PIN1 Pin10
PIN 6 = n/c PIN 7 = SCA PIN 8 = SCL PIN 9 = n/c PIN 10 = GND
2. Software
The data access and works over I2C Bus. There is no special initialization required – refer to datasheet of the DS1339 for more information.
2.1. Reading data via I2C
Principle way of reading data via I2C from the RTC.
/**********************************************************************\ * read RTC data (generalized description) \**********************************************************************/
master.ReadRegisters(I2C Addr, Register | AUTO_INC, mBuffer, 6);
2.2. Writing data via I2C
Principle way writing data via I2C to the RTC
/**********************************************************************\ * write RTC data to register (generalized description) \**********************************************************************/
master.TransmitBytes(I2C Addr, Register | AUTO_INC, data0, data1, data2);
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 6
2.3. Register map
For more details of the chip functionality please refer to the datasheet of the DS1339U.
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 7
2.4. Demo Software
A demo software for the ASURO xTend board is available which displays the date and time on the display. To enable the display function you have to make a change the Makefile - in the Global Defines section you should have IOEXT_RTC defined.
# Global Defines # # Enable demo program for connected sensor module. DEFINES = IOEXT_RTC
2.5. Setting time and date
The demo software provides a function which allows reading and setting the time and date via USB interface.
2.6. Slave Address
RTCLOCK = 0xD0 // DS1339U
3. Technical Data
VDD 10.0 V 3.3 V IDD 1.0 mA (peak) 0.4 mA (standby) Temperature Range: -10 to 65 °C
Key Features of the DS1339U:
Real-Time Clock (RTC) Counts Seconds, Minutes, Hours, Day, Date, Month, and Year with
Leap-Year Compensation Valid Up to 2100
Two Time-of-Day Alarms Programmable Square-Wave Output Oscillator Stop Flag Automatic Power-Fail detection and switch circuitry Trickle-Charger
Hint: There should be no need to replace this battery! Recharging will occur during normal operation of the ASURO xTend. The data will be kept over several weeks.
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 8
4. Schematic
5. PCB
Top view:
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9th, 2014 page: 9
Loading...