CodeBlocks Arduino Edition is ideal for productive Arduino project development. It comes with all latest libraries supporting hardware distributed on this website, including OBD-II products, OLED/LCD products etc. The latest version has built-in support for Freematics OBD-II Adapter.
Today I exhibited Project Freematics at the Sydney Mini Maker Faire.
Freematics OBD-II Emulator is a vehicle data bus emulation device. It is a 12x8x3cm box equipped with a 16-pin OBD-II port, 9 dials, 3 switches, a USB debug port, a 12V power input and a power button, emulating a car’s data bus with emulated data adjustable by physical dials. The OBD-II port is physically identical to the one of a real car. OBD-II complaint device can be plugged into the port and work as if in real cars. The emulator is practically useful and cost effective in OBD-II application development by saving the time and fuel for debugging and testing programs with real cars. Continue reading
Freematics OBD-II Adapter is the world’s first OBD-II device integrating an Arduino connected to peripherals of accelerometer, gyro, temperature sensor, Bluetooth/BLE and microSD socket. The adapter can optionally lead out a cable connecting with and powering an external device via either SPI, I2C or serial UART.
The onboard main controller is an AVR ATMega644PA which can be programmed as an Arduino. The vehicle OBD-II as well as all peripherals connected to the MCU can be easily accessed with Arduino libraries.
The World Maker Faire was just over. The event impressed me a lot in many aspects. Here are some pictures I took during the event, in which you can also find my exhibition table.
As I am already on my way to New York for the World Maker Faire, the shipping of some orders will be delayed. I am really sorry for this. I will process all the orders immediately when I get back on Sept. 27. Hope you guys can wait for me.
UPDATE: I’m back from New York! Thanks for waiting. Shipping resumed! (9/29)
One of my goal is making an open-source version of Performance Box. With the help of my just developed OBD-II simulator, I have made it today. The time of a car’s acceleration from static to 60/100/200km/h can be measured with Arduino connected with OBD-II and GPS. I will further improve the algorithm to increase the accuracy. As this will be open-source, everyone can see how it works and judge the results.
Current the sketch works like this:
- When car is static, read OBD-II car speed data (PID 010D) continuously
- When detecting speed changes to non-zero, keep start time (in ms)
- Speed, RPM and GPS data is logged to microSD card during the procedure and can be used to generate charts and for further analysis
- When GPS speed (speed from multi-Hz GPS is more accurate OBD speed) reaches thresholds (60, 100 and 200 km/h), keep the time and display the elapsed time
- When elapsed time past 99 seconds or speed overpass 200 km/h, the procedure ends
The source code is based on current OBD Logger and will be published soon.