(Help) Hooking up LPC1769 to laser rangefinder

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

(Help) Hooking up LPC1769 to laser rangefinder

1,027件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Nabil55 on Fri Jun 13 07:24:33 MST 2014
I'm trying to connect a LPC1769Xpresso board to a laser sensor in order to retrieve distance readings. I'm using the OSLRF-01 rangefinder (http://www.lightware.co.za/shop/en/laser-sensors/24-oslrf-01.html). I found someone hooking up this same rangefinder with an arduino board, but the code is using an arduino library called NewPing.h (http://letsmakerobots.com/node/40633). Is there a similar library for LPCXpresso?
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

985件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Nabil55 on Mon Jun 16 07:50:41 MST 2014
I think I should've clarified. I was only referring to the header file, NOT the c++ file file.
0 件の賞賛
返信

985件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Nabil55 on Sat Jun 14 11:44:06 MST 2014
Does it have to be in c++ though? I've never used c++ before (as opposed to c, which I am familiar with).
0 件の賞賛
返信

985件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rocketdawg on Fri Jun 13 09:15:27 MST 2014
so there is an Arduino library. I looked at that code.
Seems fine.  You should be able to create a LPCOpen c++ project and use the library c++ code directly.
there will be some things you have to modify, such as all the Arduino library stuff like, bit_set() and analogRead()
perhaps get the Aurduino library source code and modify it to talk to LPC hardware.
Aurduino has been ported to some Cortex M3 parts.

0 件の賞賛
返信