Source language: Translate to:

Hardware control via USB

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Hardware control via USB

Postby DaveJ » Tue Dec 30, 2008 2:23 pm

Been a long time since I visited the forum so please excuse me for any ignorance regarding other posts.

Have searched through previous posts but cannot find anything current regarding controlling hardware via Neobook.

I have found a cheap pc interface card made by Velleman
http://www.vellemanusa.com/us/enu/produ ... ?id=500349
I have purchased one of these expecting I would be able to use it via one of neobooks plugins to control the DLL. Only problem is that none of the Dll such as hpwDllCall has much in the way of documentation.

Looking back through previous posts I noticed that Aussieglider was looking into something similar but his web site is missing and no recent posts but many people showed a lot of interest.

I have the full manual on controlling the board on a pdf if anyone is interested in possible solutions. Source code for Delphi, VB and C++.

All the best for the New Year

DaveJ
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby HPW » Wed Dec 31, 2008 12:50 am

Only problem is that none of the Dll such as hpwDllCall has much in the way of documentation.


hpwDllCall was not designed as a general DLL-Caller plugin.
It was made to call a DLL with one PChar-Parameter and get a PChar return.
The velleman-DLL is called with different commands (LongInt etc.) and also more than one.
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby DaveJ » Wed Dec 31, 2008 7:58 am

Thanks, I guessed that I needed something a little more complex.

The USB board comes with a Delphi example but I wouldn't know where to start in converting it to be a Neobook plugin.

I will see if any of the plugin developers think a real world interface would of use to others as it means Neobook could measure and respond to a number of events.

My plan was to control my own micro-microbrewery as it can mostly be automated by measuring temperature, switching heaters and running pumps and valves etc.

Let me know if the development dll and sample files are of any interest.
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

New Velleman USB interface Plugin for Neobook

Postby DaveJ » Mon Jan 12, 2009 8:43 am

For anyone interested, I have developed my first true Delphi plugin for Neobook.

The plugin Controls the Velleman K8055 USB interface board.

5 digital inputs
2 analogue inputs
8 digital open collector output switches (max. 50V/100mA) (on board LED indication)
2 Digital counters
2 analogue outputs:
* 0 to 5V, output resistance 1K5
* PWM 0 to 100% open collector outputs max 100mA / 40V (on board LED indication)

The board is quite cheap at £25 if you build it yourself or £35 built.

It now means that I can measure temperature and switch Heaters on and off. Basically I can get Neobook to respond to the outside world and do just about anything!

If anyone wants to know more let me know.

Couldn't have done it without the guidance from Hans-Peter. My thanks goes to him.
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby HPW » Mon Jan 12, 2009 10:01 am

For anyone interested, I have developed my first true Delphi plugin for Neobook.


Congratulations!
After getting a start from the SDK (and only little help) you made fast progress.
:wink:

PS: Which delphi version do you use?
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby DaveJ » Mon Jan 12, 2009 10:29 am

Borland® Delphi® for Microsoft® Windows™ Version 10.0.2288.42451 Update 2

Found the link to download somewhere in this forum.
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Re: New Velleman USB interface Plugin for Neobook

Postby naglieri » Mon Jan 12, 2009 12:22 pm

I'm very interested.
When will be possible test and buy your plugin, and which hardware we must buy and where ?

Bye



DaveJ wrote:For anyone interested, I have developed my first true Delphi plugin for Neobook.

The plugin Controls the Velleman K8055 USB interface board.

5 digital inputs
2 analogue inputs
8 digital open collector output switches (max. 50V/100mA) (on board LED indication)
2 Digital counters
2 analogue outputs:
* 0 to 5V, output resistance 1K5
* PWM 0 to 100% open collector outputs max 100mA / 40V (on board LED indication)

The board is quite cheap at £25 if you build it yourself or £35 built.

It now means that I can measure temperature and switch Heaters on and off. Basically I can get Neobook to respond to the outside world and do just about anything!

If anyone wants to know more let me know.

Couldn't have done it without the guidance from Hans-Peter. My thanks goes to him.
Naglieri Marco
Information Technology
Tel +39-0721-433352 Fax +39-0721-400924
Renco S.p.A - 61100 Pesaro - Italy
www.renco.it
User avatar
naglieri
 
Posts: 49
Joined: Thu Mar 31, 2005 11:31 pm

Postby DaveJ » Mon Jan 12, 2009 12:44 pm

Hi naglieri

You can see the card here; K8055

http://www.velleman.be/ot/en/product/view/?id=351346
Im pretty sure this company have distributors all over the world.

In the UK you can get them here;
http://www.maplin.co.uk/module.aspx?moduleno=42857

I will be giving it a little more testing but it seems to be working ok. Plugin should be fully tested within the week.
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby HPW » Mon Jan 12, 2009 2:43 pm

Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby beno » Mon Jan 12, 2009 3:22 pm

Hi DaveJ and HPW,

Thanks for all your work!

This sounds very interesting for me, so once you think it´s time to offer your plugin please let us know!

In the meantime I will investigate on how to get a card like this.

Saludos,

beno
User avatar
beno
 
Posts: 678
Joined: Fri Apr 01, 2005 9:03 am
Location: México

Postby WinMacLyn » Mon Jan 12, 2009 6:10 pm

Hi DaveJ and HPW

I am very interested with anything related to micro controllers, so when plug-in is ready please let me know.
If you do things with love, passion and common sense everything in life will be returned to you the same way.
User avatar
WinMacLyn
 
Posts: 110
Joined: Wed Jan 17, 2007 7:30 pm

Postby DaveJ » Tue Jan 13, 2009 1:41 pm

The plugin works even though a couple of the parts of the plugin need a bit of tidying up but doesn't effect run time use.

Until I setup somewhere to distribute it from you can send me a message with your email and I will send it.

No warrantee is implied as is supplied as is.

If any errors are found, please let me know so I can fix them

Dave
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Velleman plugin available to download

Postby DaveJ » Thu Jan 15, 2009 2:03 am

I have uploaded the files to my personnal web space at

www.jarrard.plus.com/


Please feel free to download and let me know how you get on.

Dave J
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby HPW » Thu Jan 15, 2009 4:35 am

Put the K8055D.dll in the Windows\system32 dir


You can also put the DLL in the directory of the compiled EXE.

(I like to keep things together)
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Velleman plugin available to download

Postby frednet » Mon Feb 23, 2009 3:22 pm

DaveJ wrote:I have uploaded the files to my personnal web space at

www.jarrard.plus.com/


Please feel free to download and let me know how you get on.

Dave J


Hello Dave,

about two years ago I posted this topic;
http://www.neosoftware.com/forum/viewtopic.php?t=15026&highlight=

My knowledge of programming was not sufficient to make use of the k8055d.dll leaving the usb board practically useless.

Making this plugin for neobook is a heroic deed indeed, opening up all kind of nice interactive projects.
Thanks for that very much!

The project I started out on two years ago was controlling a satellite dish,
So I pick up that one again.
first problem encountered is the programing of the 8 digital outputs
I mis the function to only change the state of one output.
I remember from a long time ago (1984) using an acorn atom computer,
an exor function only changed the value of the desired channel.
is there a way to do something like that with the decimal input 1-255 that regulates the output of the digital channels?

I control the satellite dish with two relays connected to digital outputs,
furthermore a pulse generator on the dish provides information on its position.


Thanks again for creating a great plugin.

Fred.
User avatar
frednet
 
Posts: 83
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

Next

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

cron