Professional Documents
Culture Documents
Abstract—In this paper, a wireless controller area network the reliability of transmission. A software design using an
(CAN) was developed using low cost microcontroller. The system ARM processor-based controller area network (CAN) is
is low cost and low power consumption for CAN application in created to fulfill above criteria.
order to receive data such as velocity, temperature and batteries
power from Maximum Power Point Tracking (MPPT). A II. SYSTEM DESIGN
programming was written for the microcontroller to receive data
from MPPT and sent it out through wireless transceiver for a
chase car to determine whether the solar car is in the optimum
condition. However the microcontroller receives data at a baud
rate of 1Mbps need to down rates to 9600bps due the maximum
limitation of the wireless transceiver. This may cause losses of
data during transmission and as such an interval is introduced
between CAN messages by using interrupt function.
I. INTRODUCTION
Controller area network (CAN) is a multi-master message
broadcast system originally developed in 1986 by Robert
Bosch [1]. The purpose of a CAN is to act as a medium to
allow individual systems to communicate with each other
without the need of a host computer [2]. This can be done by
utilizing the CAN bus that is integrated in the microcontroller
and can be connected between microcontrollers or peripheral
devices that support CAN. This CAN bus works on the CAN
feature/protocol that enables communication through a
message based protocol that is designed specially for the
Figure 1. Block diagram for the project
automotive operations [3].
Figure 1 above shows that a CAN bus system is being
Recently, the use of controller area network (CAN) in applied as means of communication medium, receiving data in
automotive application such as vehicles become more and CAN format from the motor‟s controller or from the solar‟s
more popular [4]. For instance, controller area network (CAN) car Maximum Power Point Tracking (MPPT) System. The
are being implement to improve driving safety [5], to develop microcontroller, EasyArm 8962 with LM3S8962
a fuel cell vehicle [6] and use for In-vehicle law enforcement microprocessor will tap into this bus to read the data,
applications [7]. processes the data and lastly transmit the data out via RS-232
where an wireless module, MaxStream X24-009 is connected
For a racing solar car to be driven at its best speed, it is to the chase car for data processing.
essential to obtain data such as velocity, temperature and However, one point to note that, the microcontroller will
batteries power by using a low-powered communication receive the data from CAN bus at a baud rate of 1Mbps, and
device during the transmission of messages while maintaining
Ulstatus== 1
CAN Baud rate = 1M
Yes
CAN interrupt
triggered
If Key4==0
Start
Return from interrupt
Turn on buzzer
Figure 4. Key 3 & key 4 Interrupt flow chart
Return from interrupt Figure 4 show the Key 3 and Key 4 interrupt function. Key
Figure 3. Key 1 & key 2 Interrupt flow chart 3 and Key 4 interrupt work the similar way albeit different
245
2011 IEEE International Conference on Control System, Computing and Engineering
Success ratio =
Success ratio =
Figure 6. 0ms Interval Test From Figure 6 to 9, it show that when the time interval
between message increase from 0ms to 90ms, the success ratio
Success ratio = for the transmission of data also increase until perfectly at
90ms interval per message. This is due to the different baud
246
2011 IEEE International Conference on Control System, Computing and Engineering
For wireless test work, the message that sent out and
received will be in bytes. Hence for 1000 messages that sent
out, the size will be 79786 bytes. The success ratio can be
calculated by using the amount of bytes shown in the receiving
part(Rx) which is shown in X-CTU divide with the total size of
1000 messages which is 79786 bytes. From Figure 12, the
success ratio is perfectly at 90ms interval per message which is
same for self test result shown in figure 9.
V. CONCLUSION
A wireless controller area network(CAN) was developed to
receive information such as velocity, temperature and batteries
power from the solar car by using EasyArm 8962 which is low
cost and low power comsumption. By using the interrupt
function to introduce time interval between messages, the
transmission and reception success rate is perfect at 90ms as
shown in the self-test and collaboration test.
REFERENCES
247
2011 IEEE International Conference on Control System, Computing and Engineering
[6] Feng Luo, Jie Chen, Juexiao Chen, Zechang Sun, “Controller area
network development for a fuel cell vehicle,” Vehicle Power and
Propulsion Conference 2009.
[7] Anthony Marino and John Schmalzel, “ Controller area network for In-
vehicle law enforcement application,” IEEE Sensors Aplications
Symposium 2007.
248