Interface to Velleman's K8055D USB kit
HTML Common Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
LICENSE
README.md
about.html
cl-k8055.asd
documentation.lisp
low-level.lisp
package.lisp
velleman.rules
wrapper.lisp

README.md

About cl-k8055d

Interface for the Velleman K8055 USB kit through the K8055 linux driver. The driver library is included for x86-64 and ARM.

How To

First you will need to install the udev rules into your system in order to be able to connect to and use the Velleman device from a standard user account without administrator privileges. To do so, copy the velleman.rules file to /etc/udev/rules.d/. You may need to restart your system in order for the rules to take effect.

Connect to the board/s.

(k8055:connect)

Read out or set some values to the inputs/outputs.

;; Inputs
(k8055:digital 0)
(k8055:analog 0)
(k8055:analogf 0)
(k8055:analogv 0)
;; Outputs
(setf (k8055:digital 1) T)
(setf (k8055:analog 0) 120)
(setf (k8055:analogf 0) 0.25)
(setf (k8055:analogv 0) 5.0)
;; Counters
(k8055:counter 0)
(k8055:reset-counter 0)

If the voltage mapping that is provided by default (4.7V for outputs, 10V for inputs) is not correct, you can adjust it with the voltage accessor.

Once you're done, you should probably disconnect again.

(k8055:disconnect)