2
Neural Network Line F ollower Controller(NNLFC001) General Description The NNLFC001 is an intelligent hardware solution to the problem of autonomous line following with mobile roboti ca. Its architecture contains a pre-cali brate d, multi-layered neural network (NN) designed to take in analog data from a 16 input photo-sensor array in- terfaced through the ADC0817CCN (National Semi- con duc tor ). The NN will tra nslate this data into two pulse width modulati on (PWM) outpu ts with direction control for motors on a skid steered plat- form. The default conguration for the netw ork re- quires these photo-sensors (photo-transistor/led pair- ings) moun ted in a 2x8 arra y . Nor mally the NN is setup with 3 hidden nodes in a single hidden layer with 5 dierent direction outputs in a output layer. This may not be your ideal conguration for the chip as you may have dierent photo-sensors or mechan- ical pla tform than the NNLFC001’s default. The ch ip’ s NN par amete rs can be modi ed by training and conguring a new network through placing the ch ip in traini ng mode. Thi s swi tc hes motion con- trol of the robot to be man ual activ ation based. Y ou the n con tro l the robo t by sen ding dir ect ion com- mands through the optional serial port. In this mode, photo-sensor information will be sent through the in- terfaced serial port at a const ant rate . This is ideal for obtaining training data for another neural net- work conguration. The IC is designed such that any style of neural network learning can be used as long as trained weights can be extracted for programming onto the NNLFC001. The adapta bili ty of this chip is quite diverse as its usability in the application as a line follower controller is very much dependent on the training of the neural network. Application To use the NNFLC001, you will require two inter- face ICs: ADC0817, and MAX23 2. The ADC chip is to read analog photo-sensor readings on the range of 0 to 5 volts, and requires merely the direct con- nection of appropriate signal lines on the ADC to the NNLF C001. The serial port is optional , as it is only required if you need to readjust the network parame- ters via retraining and congurat ion. It is sugge sted that the serial port interface is setup for when dealing with prototype systems to ensure correct robot oper- ati on as per the applicat ion . It can be omi tted for production models. The MAX232 interf ace is triv ial and requires only the direct connection of signals be- tween the NNLFC001 and the standard RS232 serial port. Table 1 outlines the I/O pins on the NNLFC001 and the appropriate pin assignments between the in- terface ICs. The sug ges ted photo-sen sor inputs are pho to- trans isto r/led pairi ngs. A samp le circuit for imple- men tin g suc h is depic ted in Figure 1. The syst em clock should be set at 20MHz and the tolerances of the FPGA respected. Weight Conguration The runtime weights are hard coded into the FPGA, they can only be changed by re including the ROM by recompiled the VHDL. The included software can be used to generate the weights from training data and form a proper ROM le for use with MaxPlus II. The precongured weights are set to be able to follow a 1” reective line on a high contrast background. +5 Vdc TO ADC INPUT 220 Ohm QSD123 220 Ohm +5 Vdc QED425 Figure 1: Phototransistor 1

ICdatasheet

Embed Size (px)

Citation preview

Page 1: ICdatasheet

7/30/2019 ICdatasheet

http://slidepdf.com/reader/full/icdatasheet 1/2

Page 2: ICdatasheet

7/30/2019 ICdatasheet

http://slidepdf.com/reader/full/icdatasheet 2/2