I think I'm going to re-engineer the LBB

Started by hakcenter, February 08, 2016, 08:19:00 AM

hakcenter

I've been thinking to myself why don't I just go ahead and toss the processor on a board and do what I want, but load the arduino bootloader on it ?

I'm in the process of hunting down a box from polycase, probably won't make it water-proof the first go around and max it out. Maybe engineer another one to fit into a larger box, water-proof, with the arduino header still there to use other shields and what not.

Thoughts ?
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

Go with the ATmega 2560 processor perhaps?

I do think it would be nice to have at least the VR sense chip and CAN bus on the same board as the processor, which would make it possible to have a 'breakout board' sitting on top with no chips, but perhaps a few voltage dividers, current limiters and output drivers.

But if you're going through the trouble, why not go with a whole other processor that's still Arduino capable?  Just one of a million would be the Intel Edison chipset, or an ARM processor

Of course all this will add to the cost... I was thinking of making a breakout board for the Arduino Mega so it would be easier to connect everything to rather than re-engineer the base board to fit my needs.. I think I came up with a $200 bill for a 4x6" dual sided board when I got 4 printed at once... then come the rest of the components
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

For myself, I'd be happy if it was just a breakout board that suited the extra IO (at least some) of the Mega 2560.. I'm using a fair bit of them, and with no decent headers for them it is a little bit haywire in there... especially when I need pullup resistors on the analog IO's for temperature sensors.

Looking into the SPI quad thermocouple board on fleabay for compressor, intake, and EGT.. a bit of money with my crap exchange rate but would simplify a lot of stuff.
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

#4
Design constraints!

4.0" x 3.2" for free Eagle PCB (no big deal I guess, since the actually buying it is $70, then $600 LOL)

Then it has to fit in QS50 from Polycase, QS-50 QS Series Handheld Electronic Enclosure with curved hand grips

The dashed line on the left, is the outer edge of the QS50, so it looks like the header will work within the box.

I might have to ditch the shield header design layout wise, to make it all fit. There's only 0.780" of space in there anyways... a shield may never fit. Pretty sure an Arduino is 0.60" by itself.
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

Is that box long enough for the Mega?  looks pretty tight.  Height is tight too... might have to bottom mount some stuff? 

Personally I like to have ample room to work with.. I made a big enclosure.
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

Polycase is the only company I know who does tooling on their products
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

repurpose your arduino.. make a  3d printer and make your own :)
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

Looks like everything is going to fit, even a bluetooth module. Programming via bluetooth will be possible as well.
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

One additional thing I'd like to see is a 20-5V step down connected to an analog input to monitor battery voltage..
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

So here's my final layout... too bad my pc broke for a week

I've added jumpers to the perf/cruise/brake io's at the top right in case you want to reassign the pins, and remove the 10k pullups (ya ya I know the arduino can do its own pullup but I don't see a reason to be reliant on that)

Bottom right is the bluetooth, very common HC-05, with a jumper for the 3.3v rail for programming it


Thoughts ? Board is almost outa room
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

I don't see where the headers connect... is it just me?

I would really like to see at least some through-holes for the A6 and A7 on the mega, since it's pretty much impossible to hook anything onto them with most shields there.. That way you or anyone else could make a shield that is specifically for the extra IO's on the Mega...

And BTW. you got TONS of room left.  Have you got an interrupt enabled IO broken out for engine RPM sense? (D2, D3)
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

Are you counting engine rpm right now ? I thought you were just square waving it on a spare d_io ? Do you need an interrupt pin ?

I had to abandon the headers to make room for the bluetooth and pin headers, a stacked header won't fit in the case I'm trying to put this in anyways. But I already have decided on making a lil and big bb ;-)
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

For engine RPM I would need an externally accessible interrupt pin, and I use one for the turbine shaft speed as well rather than Freqmeasure... The ISR's are very short, they're just an incrementer, so it's just i++;, and the speed calculation is done elsewhere

I take the tach signal from the Engine ECU, which is a nicely formatted square wave of 5V already, so it doesn't need any filtering.. I was contemplating adding vehicle speed sensing as well, just haven't gotten to it yet, I'm not sure if there's a preconditioned signal for me to tap into or if I have to do the filtering.. the VSS gets 8V power (weird, yeah), and I haven't checked to see what the peak voltage is from it.. perhaps just a step-down resistor bridge would be sufficient.
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.