background image

 

AN-000227

 

 

Document Number: AN-000227

 

Page 9 of 15

 

 

Revision: 1.0  

 

 

From the Device Programming screen scroll to the project’s Debug directory and select the s

martsonic-

presence-example.hex 

file.  

o

 

Note

: Alternately, you may use the 

smartsonic-presence-example.elf

 file, which contains 

symbolic debug information. (Both files are generated when you build the application. If you are 

simply running the Presence Detection application, and do not need to use the Atmel Studio 7 

debugging features, it does not matter which file you use.)  

 

Select 

Program

. Your SmartSonic board is successfully programmed when the Device Programming screen 

displays the “OK” messages shown below on the bottom left:  

 

Figure 5. Successful Programming

 

 

RUNNING THE PRESENCE DETECTION APPLICATION  

 

Start the terminal emulator program and open/configure the COM port assigned to the SmartSonic board 

“EDBG”:  

o

 

1000000 baud

  

o

 

8 bits data, no parity, 1 stop bit 

 

o

 

New-line sequence = Line Feed only (no carriage return) 

 

 

PuTTY: Open 

Terminal

 configuration. Select 

“Implicit CR in every LF”

.

 

 

 

TeraTerm: Open

 Setup > Terminal

.

 

Under 

“New-line” 

set 

“Receive” 

to

 “LF”

.

 

 

 

 

Summary of Contents for SmartSonic CH201

Page 1: ...specifications and information herein without notice Chirp Microsystems 2560 Ninth Street Ste 220 Berkeley CA 94710 U S A 1 510 640 8155 www chirpmicro com Document Number AN 000227 Revision 1 0 Relea...

Page 2: ...d on the presence detection algorithm In this example the application is built using Atmel Studio 7 for the Chirp SmartSonic evaluation board which features an Atmel SAMG55 microcontroller The SmartSo...

Page 3: ...Detection Application 9 Changing the Presence Detection Application Settings 13 6 1 MEASUREMENT_INTERVAL_MS 13 Reference Documents 14 Revision History 15 LIST OF FIGURES Figure 1 SmartSonic with CH20...

Page 4: ...e white arrows Optional Using flat flex cables attach additional off board sensor s to the connectors on the daughterboard If an offboard sensor is connected to the Sensor 0 connector J6 you must set...

Page 5: ...ort number assigned to the SmartSonic board There will be one port associated with the SmartSonic board called EDBG A second COM port will also be assigned but is not used in this application o The ED...

Page 6: ...ion about the operation of the application The application smartsonic presence example inc app_config h file specifies the overall measurement interval The default is 100 ms 10 Hz sample rate o board...

Page 7: ...gramming Screen Verify that the tool is EDBG device is ATSAMG55J19 and interface is SWD Select Apply o Note Atmel Studio 7 may require you to update the EDBG debug interface firmware on the SmartSonic...

Page 8: ...00227 Page 8 of 15 Revision 1 0 Figure 3 Device Signature and Target Voltage Select Memories on the Device Programming menu The Device Programming menu will prompt for the name of the file to program...

Page 9: ...the Atmel Studio 7 debugging features it does not matter which file you use Select Program Your SmartSonic board is successfully programmed when the Device Programming screen displays the OK messages...

Page 10: ...e o Sensor number o Boolean indicator of whether object presence was detected 0 no presence 1 presence o Range measurement expressed in millimeters o Confidence level expressed as a percentage In the...

Page 11: ...orithm detects changes in the ultrasound environment it is normal for the first few measurement cycles to report no presence detected Figure 6 shows the typical application output during initializatio...

Page 12: ...rements has been made the presence of objects can be detected Figure 7 shows typical application output during operation with two sensors The Merged output lines indicate the overall Presence Detectio...

Page 13: ...pplication s timing 6 1 MEASUREMENT_INTERVAL_MS Specifies how often a new measurement cycle will be initiated in milliseconds Default 100 ms 10Hz sample rate This value is used in main as a parameter...

Page 14: ...AN 000227 Document Number AN 000227 Page 14 of 15 Revision 1 0 REFERENCE DOCUMENTS AN 000214 Presence Detection AN 000226 CH201 Ultrasonic Presence Detection Reference Design User Guide...

Page 15: ...the infringement of patents copyrights mask work and or other intellectual property rights Certain intellectual property owned by Chirp Microsystems and described in this document is patent protected...

Reviews: