| 数据搜索系统,热门电子元器件搜索 |
|
DEV-13262 数据表(PDF) 7 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13262 数据表(HTML) 7 Page - SparkFun Electronics |
|
7 / 8 page ![]() 6.SparkFun_SerialLCD_Demo - A quick sketch to make sure your serial LCD screen is functioning properly. For our example, we are going to run through the ECU_Demo sketch, but feel free to use or modify the other sketches. If you decided to not plug in the microSD card, GPS unit and LCD screen, you should instead run the CAN_Demo. ECU_Demo This sketch shows off the basic functionality of each part of the shield. Once you’ve installed the library, open up Arduino and upload this code to your RedBoard. Check through the comments in the code for details of what each section does, but the general flow of the sketch is as follows: 1. The Arduino initializes the pins, variables, and baud rates for the GPS, LCD, uSD card, and CAN-Bus. 2. In the setup loop, each device is started, and verified that everything is connected as it should. Both the CAN-Bus and uSD card will print either success or failure messages to the LCD screen. 3. The shield will wait for the user to click the joystick to begin collecting data off of the GPS module and the CAN-Bus. 4. Once the user has clicked to begin logging, the CAN-Bus will poll for the engine RPM, and will write the latitude, longitude, and GPS speed. A message that the unit is logging will appear on the LCD screen, and the actual engine RPM will be printed to the Serial monitor. The data collected is written to the uSD card. 5. Each loop, the code checks if the user has clicked the joystick. If so, the unit stops logging. /******************************************************* ********************* ECU CANBus Reader and Logger Toni Klopfenstein @ SparkFun Electronics September 2015 https://github.com/sparkfun/CANBus_Shield This example sketch works with the CANBus shield from S parkFun Electronics. If you’ve uncommented the lines for serial debugging, you should see something like this: Engine RPM readings from CAN-Bus shield hooked up to a simulator. Page 7 of 8 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |