(Help) Hooking up LPC1769 to laser rangefinder

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

(Help) Hooking up LPC1769 to laser rangefinder

982 次查看
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 回复数

940 次查看
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 项奖励
回复

940 次查看
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 项奖励
回复

940 次查看
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 项奖励
回复