[Home]HalSchematicsUsingGschem

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 31

This page describes a gui for designing hal 'circuits'

2010 01 156

added 'motion'symbol, used 4 pins each for aio dio did not put in the functions, they dont follow naming convention and ar enever mentioned in hal fies (afik) upload:motion.png

2010 01 15

new symbol lib(so far)

picture of component collection upload:hal-palette-8jan2010.png

component bundle (is a directory named 'hal & belongs in /usr/share/gEDA/sym/ ) upload:hal2.tar.gz

python script upload:readGnetlist05.py

changes: uniform symbols, pins vs params vs funct are color coded, no more extra explanatory text
changes: files uploaded with old names to save space, dates in names are thus bogus

2010 01 08

ok, got some real code output now gEDA .sch file automaticly generated file almost suitable for hal the component list and counts are good
  eg:   and2 count=3
the net lines are good (now as many pins as wanted on a net is ok )
  eg:   net mysig parport.0.pin-01-out mux2bit.3.out not.0.in mux2.0.sel

drc checks ok

syms check ok ( no more special attributes, 'author' is data type, 'comment' is pin/param/funct, 'description' is r,w,rw )

toolchain is:

  draw schematic using new hal component pallete
  connect pins as you like
  name the wires (thats the net name)
  save the schematic
  use gnetlist to make the netlist
   eg: gnetlist -g geda yourschema.sch -o yourschema.netlist
  process the netlist with a python script
   eg: python readGnetlist05.py newsyms-8jan2010.netlist >newsyms-8jan2010.halmost
  then handhack the threads etc ( its not all done yet )

example schematic

   upload:newsyms-8jan2010.sch
picture of example schematic
   upload:newsyms-8jan2010.png
example output
   before process: upload:newsyms-8jan2010.netlist
   after  process: upload:newsyms-8jan2010.halmost

todo:

   threads... connect components and functs to threads

2007 04 08 if you are interested, please install gEDA, download the library and try this idea

OLD NEWS: DEPRECATED AT BEST... Hal circuits are composed of

These circuits have been described by text files.
with typical commands like the following...

loadrt hal_parport cfg="0x0378"
linksp Xstep => parport.0.pin-03-out
linksp Xdir => parport.0.pin-02-out

When there are many connections, and devices, a more graphic tool is desirable.
I imagined a graphical layout tool with a pallete of hal components
and connections made by drawing lines between pins
and the ability to re-arrange and rubberband the components.

The electrical schematic toolset 'gEDA' may be suited for this use.

A library of hal components and drivers is being created to test the usefullness of this concept.

Users will be able to drag and drop components onto a canvas, and 'wire' the pins together.
At first it will just aid in visualization,
later it may save valid .hal files
Much later it may be used to enquire information from a running sytem,
or to be animated by live data.
Possibly these graphs can be automatically created from .hal files.

A tool set for schematic capture and pcb layout is being tested for this use.
This toolset is named gEDA, and it's circuit drawing tool is named 'gschem'.
gschem has a large pallet of devices already, but allows custom devices to be added.
These new devices appear as boxes with pins and text.
These devices can represent hal components and drivers.

gEDA can be had with 'sudo apt-get install geda'

a library of hal components is being built,
and the tarball can be accessed here

LIBRARY BAD AS OF 06NOV2009, WILL REPOST AFTER FIX

These files should be placed into a directory created by the gEDA install

 '/usr/share/gEDA/sym/local/'

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions | View current revision
Edited January 16, 2010 10:10 pm by adsl-75-4-36-95.dsl.emhril.sbcglobal.net (diff)
Search:
Published under a Creative Commons License