Page 1 of 1

GPIO simple CAN enabled IO board by DRT Cory Grant

Posted: Sun Feb 19, 2023 6:00 pm
by AndreyB
https://github.com/corygrant/CANBoard_HW
image.png
image.png (452.74 KiB) Viewed 8211 times
Would anyone be available to review v2? Shall I order a bunch?

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

Posted: Sun Mar 05, 2023 2:51 am
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)