A.R.I.S.E.

Amusement Ride Intelligent Safety Enhacement System

The Measurement Units

The Accelerometer and Load Cell of the A.R.I.S.E. system.

Light Show

Light Show Enhancement and Warning Display of A.R.I.S.E system

Power Source Units

Power Source Unit of A.R.I.S.E. system

Communication Units

Communication Unit of A.R.I.S.E. System

Friday, 12 April 2013

Light Control

Light Control

The light controller will basically control the lighting patterns on the boundary fences of the ride.  Based on the acceleration of the ride, the light patterns would display an acceleration effect.  This pattern will make the ride acceleration appear more rapid than it actually would be.  The pattern speed would increase as the ride accelerates and would decelerate when the ride is about to come to a stop.  In doing so, the ride would appear to be accelerating even when it is not, discouraging dangerous behavior by patron on the ride.

The light controller was built using RGB LED strips which were current driven by the WS2801 chip.  Each LED on the strip is independently addressable and therefore different patterns could be made on the display panel.  The display panel consisted of seven strips of the RGB LED strips. 



Figure 1

Figure 1 above shows an arrow display pattern that would appear around the enclosed fences of the ride.  This arrow pattern would speed up or slow down based on the speed of the ride.  If the ride was speeding up the arrow pattern would appear on the fences in a direction opposite direction of the ride.   This would simulate an exaggerated acceleration of the ride, however the ride would still be moving accelerating normally.



Figure 2

Figure 3

Figure 4

Figures 2, 3 and 4 show a random sparkle pattern that would appear on the panel around the fences of the ride if someone were to get up.  This sparkle pattern was chosen over an actual "WARNING" sign which might give riders the impression that the ride is unsafe and that an actual sign appearing around the fences would repel potential riders from getting on board the ride.  Therefore, a random sparkle pattern is sufficient in delivering a subtle message to the operator to be on the lookout of potential patrons who are not seated while the ride is still in motion. 



Data Collection Unit

Introduction

This chapter will introduce the data collection unit and its functionality. This component of the design is essential to incorporating ride safety together with entertainment value. The data collection unit's primary function is to take the information sent from the measurement unit and relay it through a medium that can be observed by the operator and patrons where appropriate action can be taken.

Operation

The data collection unit will have the functionality of receiving signals, output ride data and generate light patterns based on the acceleration data. The figure below illustrates the process at the data collection unit. The microcontroller on the operator end will process the data received from the measurement unit and output it to a LCD display for monitoring purposes. The speed of the ride will be used to determine the patterns for the LED light show which will be exaggerated to encourage riders to adhere to safe rider practices. If a rider is not seated during the ride, the light show will stop and instead display an emergency warning clearly visible to all patrons on the ride or in the area and to the operator. The data will also be used to trigger a bit on the output of the microcontroller where a relay or some other electrical disconnect can be attached by the owner to automatically stop the ride if this event occurs.

Wireless Technology


Wireless Technology

Electronic devices traditionally communicate through physical wired connections. Alternatively, in some situation where physical connection is not possible due to environmental restraints, there are several cordless methods to transfer information. The most common method to transfer data wirelessly is using various radio frequencies. In practical designs, the radio frequency range is determined by the application. For example, application that requiresa faster transfer rate and long distances would usea higher frequency range such as Wi-Fi technology, which operates at 2.4 or 5 GHz. In short range applications, a low frequency range device would be more preferable due to less energy consumption, such as television remotes and remote controlled gadgets.

Application

A wireless communication device is used to provide the connection from the measurement unit to the data collection system. A microprocessoris required to control the data flow of the measurement unit. Prior to transmission, the microprocessor is responsible for calculating andencoding of any data obtained from the peripheral attached to it. When the encoded message is ready to be transfer, it will be passed on to the transmitter. The digital signal will be delivered to a receiver on the data collection system. Subsequently, a second microprocessor will be needed to decode the signal retrieved and the processed data will be ready for use after decoding.



  Component Selection


There are wide varieties of wireless devices available in the market today, such as Wi-Fi, Bluetooth, Infrared, Cellular and Radio frequency. A several factors should be considered for determining appropriate wireless module.Majority of wireless devicestransmission range are dependent on the amount of input power available. However, energy consumption is a major concern for this project.Hence, seeking a low power usage wireless chip that could also maintain necessary performance would increase the operation time of the measurement system.


Several example mention above regarding feasible wireless options available, but the most suitable technology found fit for this project is the radio frequency (RF). Precisely, the low frequency RF devicescan be found in many forms and sizes. Since this project only requires transmitting information over a short distance, using the XBee series 1 chip would be sufficient. The XBee RF module is composed of both transmitter and receiver, also known as transceiver. It hastransmission ranges up to 30 meters with obstacles within path or up to 100meters with direct line of sight.

This typical specification for XBee chip is 3.3V at 45mA for transmission, which is about 148.5mW per transmission. For estimation purposes, the data transmission from the measurement system to the data collection unit is set to every 5 seconds. It would consume about1.78W per minute. In comparison,the approximate duration of hypocycloid pattern amusement rides is about 2.5 minutes, which is about 4.46W per ride duration.This consumption rate is estimated base on rated specifications. When implementing, the transmission may be adjusted to fit the project needs and the actual energy consumption may be less. Since the energy usage is dependent on the data transmission rate, adjusting the amount of transfer relative to battery level would be a solution to lower energy consumption.

Hardware Operations

The XBee RF module is a Universal Asynchronous Receiver/Transmitter (UART), which translatelogic level asynchronous serial signal into readable data.The signal transmitted in 8 data bits and a stop bit by alternating signal voltage levels to compose zeros and ones. The figure 5.4.1 shows an example of UART data packet transmission of a decimal number “31”. The signal remains high during idle, transmission of one bits and stop bit. On the other hand, the signal becomes zero when initializing the start bit and transmission of zero bits.



The serial transmission of data is limited to 8 bits and receiver/transmitter buffer size.Hence,hardware flow control can be implemented to prevent loss of data due to memory overflow. The figure 5.4.2 shows the internal data flow diagram of an XBee module.



When flow control is enabled, the incoming data from the microcontroller will remain in the data in (DI) buffer until it can be processed. The CTS outputs a low signal notifying the host, it is clear to send; otherwise a high signalwould initiate a stop when DI buffer has less than 34 bytes of memory. Similar approach is used for the data out (DO) buffer to control data flow with RTS (request to send).

To simplify programming schemes, some designers prefer to eliminate the use of flow control. This technique is possible if the sending message is smaller than the DI buffer size (about 202 bytes) and interface at a lower baud rate. More details on for buffer overflow prevention can be found in page 12 of the XBee product manual.



XBee Configuration


The XBee RF module can be configured using X-CTU program, which is only available on windows operating systems. In this project, the prototype only demonstrates communication from a single measurement unit to the data collection unit. Therefore, the XBee device can be setup as a peer to peer. The XBee can be connected to the PC using an XBee explorer USB and X-CTU program can configure it through serial USB port.

Connect the XBee module with the XBee explorer into the USB port of the PC. Select the “PC setting” tab and choose the corresponding COM port. By Clicking on test/query button, the program will verify the connection between the PC and XBee. However, in order to establish the connection, the correct baud rate for the XBee device must be selected (note: default XBee baud rate is at 9600).


The next step is to choose the XBee communication settings, under the “modem configuration” adjust the settings for receiver and transmitter XBee as follows. There is also an option using application-programming interface (API), but in this prototype the XBee are configured to operate in transparent mode.


XBee #1
XBee #1
Channel
13
Channel
13
PAN ID
8788
PAN ID
8788
DH
0
DH
0
DL
10
DL
11
MY
11
MY
10
Baud (BD)
9600
Baud (BD)
9600
            

Implementation

The measurement unit and data collection unit both require a microcontroller to act as the host to process the data prior to transmission or receiving. The microcontroller used in the measurement unit is the PIC24FJ128GA010 chip and the data collection unit is the Arduino Mega.

PIC24 Microcontroller



The asynchronous serial communication requires an accurate calculation of the baud rate for the data to be transferred and decrypted on the receiver. The baud rate of the serial communication is dependent on the clock frequency and the number of bit period. The UART module inside the PIC24 includes a dedicated baud rate generator, which calculates the baud rate by the following equation.

UART baud rate with BRGH = 0 (16 clock per bit period)





UART baud rate with BRGH = 1 (4 clock per bit period)



Both equation based on FCY = FOSC/2; Doze mode and PLL are disabled. More details on baud rate calculation can be found in the PIC24FJ128GA010 family data sheets.

Since the baud rate is very depended on the oscillation frequency of this chip, the serial communication requires a steady oscillator to operate properly. Although, this chip has an internal oscillation, the oscillator is affected by temperature. For this reason, an external oscillator is more preferable as it can provide a much more reliable clock frequency. There are several types external clock available in the market, such as external clock, external oscillator, ceramic resonators and external oscillator with RC circuit.

The Microcontroller


4.4.1 Application


4.4.1 Application

A Microcontroller is used to process the raw data obtained from the Load Cell and the Accelerometer. An algorithm is created to process the data being input and produce the desired information to be transmitted via the wireless receiver to another microcontroller on the operator end. The other microcontroller is used to process the received data where an algorithm for displaying a light show to exaggerate the ride motion, to warn the operator if the rider is not seated and to display the processed data to the LCD display is produced. The main purpose of a microcontroller is to be able to control a process using many different sensors quickly and accurately. An electronic sensor is a device that measures a physical quantity and converts it into an electrical signal that can be processed or read by another electronic instrument.

Component Selection

The Microprocessor used for this design is the PIC24FJ128GA010 microcontroller from Microchip. This type of microcontroller is very versatile with 86 I/O pins and a CPU speed of 16 MIPS. The PIC microcontrollers are the industry standard and are inexpensive, low voltage and robust solutions to complicated algorithms and heavy processing.


Figure 4.4.1

This particular model has 16 channels of 10-bit analog to digital converters with five 16-bit timers and 5 Input and 5 output captures all with dedicated timers. This processor is chosen because it's very versatile and has the flexibility to be a perfect prototyping tool. A final model of this design would not require such a powerful microcontroller. Table 4.4.1 is a further break down of its specifications.

Table 4.4. 1
Architecture
16-Bit
CPU SPEED (MIPS)
16
Memory Type
Flash
Program Mem.
128 KB
RAM Bytes
8,192
Temperature Rating 0C
-40 to 85
Operating Voltage Range
2-3.6V
I/O Pins
85
Pin Count
100
System Management
BOR
POR
Yes
WDT
Yes
Internal Oscillator
8MHz, 32kHz
Codec Interface
NO
Digital Comm. Peripherals
2- UART
2-SPI
2-I2C
Analog Peripherals
1-A/D 16x10-bit (500 ksps)
OP-Amp
NO
Comparators
2
Capture/Compare/PWM
5/5
PWM Resolution
16 bits
Timers
5x16-bit
Parallel Port
PMP
Hardware RTCC
Yes
Nanowatt Features
Fast Wake / Fast Control