It's weekend
It's weekend so I had time to work on this further.
The 3D print is now painted, not quit happy with the result but it'll do. The thin bar bulges and the paint doesn't look good in that area probably due to curing it at 40°C after 24hrs drying. Soldering is finished, and did a final test in the car. I also soldered a loose wire with crimp connector to the Arduino pin D7, this will let me re-program the HC-05 if it will ever break down (connecting it to the "key" pin of the HC-05). After soldering, I fixed the cables in place with "UHU Max repair extreme" glue, this way the fragile cables will not come loose due to movements. For connections to the display and HC-05 I'm using these crimp connector housings, the crimps from arduino female jumper cables fits them nicely. I'm using a JST-XH connector, this will pass through the "ashtray illumination-hole". Just because I had them laying around. Arduino code: This changed also a little, and now uses 98% of internal Arduino memory (if using the correct Arduino nano, see image below) When changing the code to imperial (fahrenheit / MPH) this drops to 97% (probably due to the "drawCircle" not taking place). The complete revised code can be downloaded here (unzip it). Video: Power is not yet coming from the car, but from a powerbank, and a modified USB cable connected the the JST-XH connector. Pictures: Soldering overview with the (female) JST-XH connector at the bottom: https://i.ibb.co/rGr1fWj/xkr-ashtray-finished-01.jpg Another view: https://i.ibb.co/vJK7YWh/xkr-ashtray-finished-02.jpg Zoomed arduino view with the "UHU glue" visible: https://i.ibb.co/KXc8MRT/xkr-ashtray-finished-03.jpg The slider switch also glued: https://i.ibb.co/R4c90d9/xkr-ashtray-finished-04.jpg The push button and photo-resistor also used some glue. There are 2 resistors in there, not visible but protected by heat shrink tubing: https://i.ibb.co/ThqFcFH/xkr-ashtray-finished-05.jpg All components inside the housing with the thin bar not looking good: https://i.ibb.co/Dtf44QY/xkr-ashtray-finished-06.jpg Backside of the housing, the thin bar is bulging upwards, hoping it will not https://i.ibb.co/bNWW0nn/xkr-ashtray-finished-08.jpg side view, with the USB socket exposed: https://i.ibb.co/TvfZPH2/xkr-ashtray-finished-09.jpg Overview with cover in place. The slider switch is difficult to operate. Use a pen or I have to grow some longer nails.... https://i.ibb.co/rsJS3wJ/xkr-ashtray-finished-07.jpg Using a clone Arduino Nano with an Atmega168 processor will not hold the Arduino code (too big) Therefor an Arduino with at least the Atmega328P chip is needed. The Robotdyn Nano V3 has such a chip (Old Bootloader). https://i.ibb.co/hY5C57q/ide-error.png If a HC-05 is used which is fully 5V compatible, notable by the fully green PCB design in stead of blue, and the writing "www.hc01.com" on it, the voltage divider is not necessary any more. Hence the (final) electrical circuit design change: https://i.ibb.co/Dp3CfhF/final-scheme.png |
Hey Mate,
Where is the power being picked up? Did I miss? Thanks for the details. |
Originally Posted by RedRider48
(Post 2256859)
Hey Mate,
Where is the power being picked up? Did I miss? Thanks for the details. |
Originally Posted by Cabrio Bob
(Post 2256865)
Power is not yet connected to the car, it receives it from a powerbank (in the video where I plug in the USB connector)
This is a neat project am seriously looking to make this device too. A question, can the OBD reader be a universal unit, that is, any Android OBD one can purchase of the net? |
Originally Posted by RedRider48
(Post 2256975)
OK, I thought I missed it. Could not power be picked off the lighter socket? Although, I suppose one could use a power bank to make it less complicated.
This is a neat project am seriously looking to make this device too. A question, can the OBD reader be a universal unit, that is, any Android OBD one can purchase of the net? In general I think if the OBD reader works with torque, it will also work with my design. Get one that shuts down after some time the car is turned off, then you can leave it plugged in. |
Hey Mate
Unless I missed tit, did you comment on what make and model ELM OBD reader you were binding to? I can't tell from the Vid in post 26? This brings up a another question, I see where you mentioned a "rename" command, what command string did you use to bind the device to the reader? Thanks again. |
Hello edrider,
I have this ELM327 reader (bluetooth 3.0), but in the past I had a really cheap reader and also worked fine with Torque. Searched back in the text here but it didn't come up with the word "rename". But i Did use the command "AT+RNAME?". Full command set I used was (in this order):
You can find the MAC address of your reader with Android apps like "Bluetooth Mac Address Finder". p.s. I was thinking about approaching it a more professional way, skip all the wire soldering, design a PCB, and solder everything to that (only 2 wires needed, +5V and ground). And it will be easier for other to fabricate this. Later more about that. Of course the current wire "mess" also works. Today I used the current setup in my car and I am already annoyed by the refresh rate of the display, so I might dig into this "Wemos LOLIN32" device I have. That should speed up things. |
This is amazing. I have no idea what's going on with the wiring... if someone wants to make a few of them I would gladly pay!
|
I'm jumping into this discussion a little late, but I am fascinated and impressed with it as I do a lot of work with Arduinos and 3d printing. To be more specific I built an entire pinball machine that way, plus a crane machine and some other smaller projects.
I'm curious about your use of PLA in that the glass transition temperature of PLA is 140 degrees F (60 C) and it can start to deform at that temperature. I am not sure where you live but there are parts of the U.S. that can probably get the interior of a car that hot during the summer. What I am wondering is if you have put any thought into getting a spool of ABS and printing with that? It might save you some problems down the road. If you've already addressed this I apologize as I skimmed through the thread and picked out the parts that caught my eye. I didn't see any references to 3d material aside from your test print and some pictures of the great print you ended up with and painted. I have to admit that I wouldn't have thought about using an Arduino for this purpose, I guess I'm stuck in the mindset of an Arduino mostly reading high and low switch states. It's quite cool what you have accomplished. EDIT: Stupid me. I see you had it printed in nylon! My apologies for skimming and for wasting time. (forehead slap) |
Originally Posted by v8moise
(Post 2258043)
This is amazing. I have no idea what's going on with the wiring... if someone wants to make a few of them I would gladly pay!
|
Originally Posted by De5in
(Post 2258052)
EDIT: Stupid me. I see you had it printed in nylon! My apologies for skimming and for wasting time. (forehead slap)
It's mainly caused by not being able to edit posts after a day, resulting in scattered info all over the place in this thread (and other threads). BTW, in my previous post I talked about ditching all the wires and create a PCB where all components are soldered onto. At the same time switching from Arduino to an ESP32 with bluetooth, making the HC-05 module obsolete, and improve the refresh rate of the TFT display. An ESP32 can still be programmed with Arduino IDE, and uses almost identical code. First impression video (not yet based on ESP32) : |
Would you do that with a project board or would you have someone custom trace a PCB for you?
|
....and the background sound is perfect too!
Not that my product has any thing to do with this project, but, my company sells a PCB thermo-couple connector that has been a big seller in the temperature sensing industry due to miniaturization. It's soldiered directly to a ckt. board. https://cimg4.ibsrv.net/gimg/www.jag...b76897e5c8.png . |
Originally Posted by De5in
(Post 2258296)
Would you do that with a project board or would you have someone custom trace a PCB for you?
|
Originally Posted by RedRider48
(Post 2258471)
.... my company sells a PCB thermo-couple connector ....
|
So it's been a while.
All above posts I now consider as "old", I totally switched to using an ESP32, and using a custom designed PCB. Yesterday I worked on designing the PCB, which is as good as finished. This evening I was struggling with the SSD1283a library, making it work with the ESP32. What a difference this makes compared to a Nano, screen refresh without a delay due to the dual core processor, and room for more "pages" on display due to the higher internal memory. I placed a message on the arduino forums as a thank-you. It's not the lolin ESP32 I was talking about before but a newly ordered small board with headers already soldered onto it. A similar example on aliexpress: this one. This will plug in the PCB without soldering wires. The 3D print design is also a good as finished, video with the design: pictures of the PCB design in Eagle: https://i.ibb.co/wzRy4Sq/eagle-brd.png https://i.ibb.co/yYT2xX1/eagle-sch.png Pinout scheme of a ESP32 "Devkit V1": https://i.ibb.co/H7TM2H8/pinout-DOIT32devkitv1.png |
update
An update,
The "old" NANO-based unit is now in my car for a week or so, a few times it had connection problems to the ELM327 while driving. This morning when driving to work it did not startup at all, only showing a white screen. Later when going home, it worked without issues again. so not very reliable currently. Update about the ESP32 based unit: The 3D print design is finished, tomorrow I will order a 3D print (this time through i.materialise). The PCB design is also finished, and I ordered 20 pieces (!) through www.jlcpcb.com. Including shipping this only costs €12.63. Delivery time is 20 days. ESP32-based parts list (ex shipping): ESP32 $3.51 SLS nylon ashtray 3D print €40.59 TFT display $2.94 Tactile button 6x6x9 $1.19 (you get 100 pcs) JST-XH 2P connector set $0.95 (you get 10 sets) 2x female header 15P $1.22 (you get 2x 5 pcs) slide switch $0.28 (you get 10 pcs) photo-resistor $0.78 (you get 20 pcs) resistor set $3.67 (330Ω and 27KΩ needed) DC/DC converter $1.21 (or you can use an UBEC (5V) or something like that) PCB (see above and below) optional: tactile button cap $0.82 (makes it more convenient to press the button) Final PCB design, top (it's green but I ordered black): https://i.ibb.co/G3VjGXz/top.png Final PCB design, bottom: https://i.ibb.co/mtyGHJY/bottom.png |
It's been a while, an update.
I made a mistake with the PCB design, traces from the ESP32 to the display are wrong, so I re-ordered some PCB's. Nevertheless I test-soldered components to the PCB to see how that goes. Also an ashtray 3D print was ordered, this time I have chosen for technique "Multi Jet Fusion" (dutch website) from Hewlett Packard. Results are similar to SLS nylon, but it feels slippery and greasy and I'm not sure if it will hold any paint. P.s. I might be willing to sell a limited amount of units later on when I'm happy with the results, Exactly how I'm not sure yet, but where I'm sure of is that I'm not making money from it, and it will be without any guarantees. More to come later. Some pictures, colours are a bit off, due to the last 2 pictures taken (custom white balance) "Multi Jet Fusion" 3D print (actually its grey): https://i.ibb.co/5rvnhHF/XKR-pcb-box-01.jpg Backside https://i.ibb.co/R2ZVwqH/XKR-pcb-box-02.jpg PCB with components soldered (ruined display, molested push button). The LDR (photo-resistor) will be changed from a GL5537 to a GL5528 (better sensitivity in the low light range), since it now runs on 3.3V. https://i.ibb.co/wh2ym64/XKR-pcb-box-03.jpg Backside PCB with components soldered (ESP32 can be removed, it's attached with female headers) The soldering looks messy, but that's due to the flux inside the solder. The R2 27K resistor will be changed to a 8.2K, since the photo-resistor now runs on 3.3V https://i.ibb.co/ZN1XHK1/XKR-pcb-box-04.jpg PCB fitment in ashtray 3D print https://i.ibb.co/tsHR8mc/XKR-pcb-box-05.jpg lid on the ashtray https://i.ibb.co/7t3yBRf/XKR-pcb-box-06.jpg Some weeks ago, special effect photography, DIY "Full Spectrum" converted camera, with an Infrared-pass filter in front of the lens, and used a custom white-balance (and some photoshop post-processing). https://i.ibb.co/GspZQrx/DSCF9132-infrared.jpg https://i.ibb.co/NKvHRmK/DSCF9144-infrared.jpg |
Originally Posted by Cabrio Bob
(Post 2272545)
P.s. I might be willing to sell a limited amount of units later on when I'm happy with the results,
Exactly how I'm not sure yet, but where I'm sure of is that I'm not making money from it, and it will be without any guarantees. Will have to be black though :) |
Originally Posted by MarkyUK
(Post 2272596)
May I be the first to place one of those possible orders?
Will have to be black though :) |
+2
|
+3
|
Originally Posted by barnsie
(Post 2274182)
+3
|
Originally Posted by MarkyUK
(Post 2274359)
And we should get ours quicker being on the right side of the pond :D
|
final
Hi all,
I would like to make a list of people who want to have this gadget, so far: 1. MarkyUK 2. Barnsie 3. JackJohn 4. v8moise 5. Reverend Sam (private messaging) Price will be as following (ex shipping): A) electronics (soldered): €18.00 B) 3D print (painted black): €32.00 C) ELM327 adapter: either €10.00 or €26.00 (explained below) D) USB car charger and USB cable €6.50 (explained below) Please drop a message here with which parts you like to order. also mention which units your device has to display (if you don't program the device yourself): - Fahrenheit or Celsius (or even Kelvin), - Miles or Kilometers (or even knots). Currently I have parts to fabricate 14 units. so when the list exceeds 14 people, they will be dropped on the "waiting list". Some parts are still to be delivered, the 3D prints are still to be ordered. I'll wait with this till the name list is complete. If you don't order the 3D print you'll have to arrange the 3D print yourself (3D print STL file will be provided) If you don't order the ELM327 adapter you'll have to program the ESP32 device yourself (not that difficult) The Bluetooth connection to the ELM327 is done by using the MAC address of the device. Every ELM327 has an unique MAC address. Since that is the case, currently I can not create an universal firmware update method. Car charger and USB cable as power supply is optional, I had this idea using this car charger and a low profile 90° USB cable as power supply, you'll end up with something like the attached image below. Probably it will stay low enough so the ashtray slider can still be closed. Since this solution will be without a fuse, I'll add a polyfuse in the circuit. If you don't order the car charger+USB cable, you'll have to arrange a 12V to 5V converter yourself. Problems with different types of ELM327 adapters: The ELM327 adapter I own works perfectly with the ESP32, recently I ordered a different type of ELM327 which was cheaper but from the same brand, unfortunately this one I was not able to pair with the ESP32. I have an even cheaper one on order to see if that one works. If not, only the "Vgate Icar Pro" is proven to work. If you think, above prices are too low, please make a suggestion :-) (prices are very close to material costs) If you think, above prices are too high, you can always go the DIY route (I will provide all needed info here.) Going the DIY route is encouraged, it's not that hard, and you will learn something. If later on I still have some PCB's left, I'll will have these for sale separately. ESP32 programming: As mentioned above it is working with the "Vgate Icar Pro", bu there is still some work to do with debugging the programming code. Currently the push button is working erratically, as is the photo resistor when switching to low or high light intensities. example car charger + USB cable: https://i.ibb.co/94vzDTH/XKR-ashtray-ESP32.png |
Originally Posted by Cabrio Bob
(Post 2276291)
Hi all,
I would like to make a list of people who want to have this gadget, so far: 1. MarkyUK 2. Barnsie 3. JackJohn 4. v8moise 5. Reverend Sam (private messaging) Price will be as following (ex shipping): A) electronics (soldered): €18.00 B) 3D print (painted black): €32.00 C) ELM327 adapter: either €10.00 or €26.00 (explained below) D) USB car charger and USB cable €6.50 (explained below) Please drop a message here with which parts you like to order. also mention which units your device has to display (if you don't program the device yourself): - Fahrenheit or Celsius (or even Kelvin), - Miles or Kilometers (or even knots). Currently I have parts to fabricate 14 units. so when the list exceeds 14 people, they will be dropped on the "waiting list". Some parts are still to be delivered, the 3D prints are still to be ordered. I'll wait with this till the name list is complete. If you don't order the 3D print you'll have to arrange the 3D print yourself (3D print STL file will be provided) If you don't order the ELM327 adapter you'll have to program the ESP32 device yourself (not that difficult) The Bluetooth connection to the ELM327 is done by using the MAC address of the device. Every ELM327 has an unique MAC address. Since that is the case, currently I can not create an universal firmware update method. Car charger and USB cable as power supply is optional, I had this idea using this car charger and a low profile 90° USB cable as power supply, you'll end up with something like the attached image below. Probably it will stay low enough so the ashtray slider can still be closed. Since this solution will be without a fuse, I'll add a polyfuse in the circuit. If you don't order the car charger+USB cable, you'll have to arrange a 12V to 5V converter yourself. Problems with different types of ELM327 adapters: The ELM327 adapter I own works perfectly with the ESP32, recently I ordered a different type of ELM327 which was cheaper but from the same brand, unfortunately this one I was not able to pair with the ESP32. I have an even cheaper one on order to see if that one works. If not, only the "Vgate Icar Pro" is proven to work. If you think, above prices are too low, please make a suggestion :-) (prices are very close to material costs) If you think, above prices are too high, you can always go the DIY route (I will provide all needed info here.) Going the DIY route is encouraged, it's not that hard, and you will learn something. If later on I still have some PCB's left, I'll will have these for sale separately. ESP32 programming: As mentioned above it is working with the "Vgate Icar Pro", bu there is still some work to do with debugging the programming code. Currently the push button is working erratically, as is the photo resistor when switching to low or high light intensities. example car charger + USB cable: https://i.ibb.co/94vzDTH/XKR-ashtray-ESP32.png All of the parts, Fahrenheit, miles |
Originally Posted by Cabrio Bob
(Post 2276291)
Hi all,
I would like to make a list of people who want to have this gadget, so far: 1. MarkyUK 2. Barnsie 3. JackJohn 4. v8moise 5. Reverend Sam (private messaging) Price will be as following (ex shipping): A) electronics (soldered): €18.00 B) 3D print (painted black): €32.00 C) ELM327 adapter: either €10.00 or €26.00 (explained below) D) USB car charger and USB cable €6.50 (explained below) Please drop a message here with which parts you like to order. also mention which units your device has to display (if you don't program the device yourself): - Fahrenheit or Celsius (or even Kelvin), - Miles or Kilometers (or even knots). Thanks for this. All of the parts please. Celsius and miles (if this is a possible combination - if not Fahrenheit plus miles). ELM 327 adapter please. I am happy to pay, within reason of course, whatever you wish to charge me. No worries at all about you making a profit. All the best, Barnsie |
You’ve done a great job in this!
If the OBD port could handle more than one device at a time, I’d sign up for one, just for the ‘cool’ factor! |
Originally Posted by Cabrio Bob
(Post 2276291)
Hi all,
I would like to make a list of people who want to have this gadget, so far: 1. MarkyUK 2. Barnsie 3. JackJohn 4. v8moise 5. Reverend Sam (private messaging) Price will be as following (ex shipping): A) electronics (soldered): €18.00 B) 3D print (painted black): €32.00 C) ELM327 adapter: either €10.00 or €26.00 (explained below) D) USB car charger and USB cable €6.50 (explained below) Please drop a message here with which parts you like to order. also mention which units your device has to display (if you don't program the device yourself): - Fahrenheit or Celsius (or even Kelvin), - Miles or Kilometers (or even knots). Currently I have parts to fabricate 14 units. so when the list exceeds 14 people, they will be dropped on the "waiting list". Some parts are still to be delivered, the 3D prints are still to be ordered. I'll wait with this till the name list is complete. If you don't order the 3D print you'll have to arrange the 3D print yourself (3D print STL file will be provided) If you don't order the ELM327 adapter you'll have to program the ESP32 device yourself (not that difficult) The Bluetooth connection to the ELM327 is done by using the MAC address of the device. Every ELM327 has an unique MAC address. Since that is the case, currently I can not create an universal firmware update method. Car charger and USB cable as power supply is optional, I had this idea using this car charger and a low profile 90° USB cable as power supply, you'll end up with something like the attached image below. Probably it will stay low enough so the ashtray slider can still be closed. Since this solution will be without a fuse, I'll add a polyfuse in the circuit. If you don't order the car charger+USB cable, you'll have to arrange a 12V to 5V converter yourself. Problems with different types of ELM327 adapters: The ELM327 adapter I own works perfectly with the ESP32, recently I ordered a different type of ELM327 which was cheaper but from the same brand, unfortunately this one I was not able to pair with the ESP32. I have an even cheaper one on order to see if that one works. If not, only the "Vgate Icar Pro" is proven to work. If you think, above prices are too low, please make a suggestion :-) (prices are very close to material costs) If you think, above prices are too high, you can always go the DIY route (I will provide all needed info here.) Going the DIY route is encouraged, it's not that hard, and you will learn something. If later on I still have some PCB's left, I'll will have these for sale separately. ESP32 programming: As mentioned above it is working with the "Vgate Icar Pro", bu there is still some work to do with debugging the programming code. Currently the push button is working erratically, as is the photo resistor when switching to low or high light intensities. example car charger + USB cable: https://i.ibb.co/94vzDTH/XKR-ashtray-ESP32.png |
3 Attachment(s)
List so far:
1. MarkyUK X X X X x x 2. Barnsie A B C D c m 3. JackJohn A B C D f m 4. v8moise A B C D f m 5. Reverend Sam X X X X x x I got a private message with some questions, here are the answers: 1. Did you post the Gerber files to make the PCB board? Not yet, I'll do this when the PCB's are delivered, and when verified it is OK. 2. What is the process for enabling the EP32 module to pair with the MAC address of the ELM? None, every time the device turns on it searches for the MAC address: Code:
uint8_t address[6] = {0xDC, 0x0D, 0x30, 0x48, 0x8D, 0x60}; See attached ZIP. It will change in the future since it's not optimal yet. p.s. the push button now has 2 functions: short and long press short press (<500ms) cycles through the display, long press (>500ms) returns to a preferred display: Code:
if ( pressDuration > LONG_PRESS_TIME ) { |
Originally Posted by barnsie
(Post 2276363)
Hi Cabrio Bob,
Thanks for this. All of the parts please. Celsius and miles (if this is a possible combination - if not Fahrenheit plus miles). ELM 327 adapter please. I am happy to pay, within reason of course, whatever you wish to charge me. No worries at all about you making a profit. All the best, Barnsie |
Originally Posted by MarkyUK
(Post 2276659)
Same for me, us Brits gotta stick together, just let me know the price and I'll paypal it to you, like Barsie, no issues with you making a profit, we are just grateful :)
|
Hey CabrioBob
Beam me up for the whole "shootin-match" A, B, C, & D. Thanks! |
list updated
List as of today:
https://cimg7.ibsrv.net/gimg/www.jag...1a370da04c.png Redrider, I presumed Fahrenheit / Miles for you. Sam didn't respond yet ... |
Is the set up you are selling "Plug and play" meaning, just assemble the components? Simple soldering? how difficult will this assembly be on a scale of 1-10 in your mind? Is the USB Charging port set up for "Quick Charging" and doese the green ring in the digital mock up indicate a light that matches the color (close enough) to the window switch lights? I am interested in the whole set up I believe, it looks awesome! I of course would prefer Kelvin and Knots please.
But seriously, Fahrenheit and Miles! |
Yes, I forgot to mention Fº and MPH for me. Thanks !
|
Originally Posted by Marc Voorhees
(Post 2277160)
Is the set up you are selling "Plug and play" meaning, just assemble the components? Simple soldering? how difficult will this assembly be on a scale of 1-10 in your mind? Is the USB Charging port set up for "Quick Charging" and doese the green ring in the digital mock up indicate a light that matches the color (close enough) to the window switch lights? I am interested in the whole set up I believe, it looks awesome! I of course would prefer Kelvin and Knots please.
But seriously, Fahrenheit and Miles! No assembling needed, soldering is done by me, so yes, it's plug and play. (or you choose differently) The "green ring" is part of the stock cig lighter equipment in the car. The USB charger I have chosen is not QC3.0 compliant, since those have a variable volts output. It will have a stable 5V output at max 2.1A. |
Alright then CabrioBob! I will take the whole setup! F and Miles please!
|
If you can put me on list as well, if its plug and play I am in as well.
Thx |
Canadacat, could you provide your preferred units? I assumed °C / KM for Canada.
and yes, when ordering the complete kit it's plug&play. List as of today: https://cimg8.ibsrv.net/gimg/www.jag...e106f8cdc3.png |
All times are GMT -5. The time now is 09:21 PM. |
© 2024 MH Sub I, LLC dba Internet Brands