GPIO simple CAN enabled IO board by DRT Cory Grant

Post Reply
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

GPIO simple CAN enabled IO board by DRT Cory Grant

Post by AndreyB »

https://github.com/corygrant/CANBoard_HW
image.png
image.png (452.74 KiB) Viewed 6701 times
Would anyone be available to review v2? Shall I order a bunch?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: GPIO simple CAN enabled IO board by DRT Cory Grant

Post by AndreyB »

Had a minor mishap with BOM.

It works!

So far got one digital input into rusEFI and one output tested with Lua.

Code: Select all

value = 0

function onAcCanRx(bus, id, dlc, data)
	value = data[5]
	txCan(1, 0x640 + 3, 0, { value, value, value, value })
	print('got CAN id=' ..id ..' payload @5: ' ..data[5] ..' @6: ' ..data[6])
end

-- canRxAdd(1, 0x640 + 0, onAcCanRx)
-- canRxAdd(1, 0x640 + 1, onAcCanRx)
canRxAdd(1, 0x640 + 2, onAcCanRx)
Attachments
it's-alive.jpeg
it's-alive.jpeg (208.74 KiB) Viewed 6487 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply