C code from LadderMaker

Posted by admin on February 15, 2016

The C code that LadderMaker generates can be used in The Arduino environment with some modification.

  1. From the terminal that Laddermaker is running in copy everything between "Making C" and "saving C and Compiling"copy_code.jpg
  2.  Paste into a totally blank Arduino IDE project. No setup, no loop.
  3. Delete two instances of "inline"delinline.jpg
  4. Change "operator" to "Operator" in five instances.changeOperator.jpg
  5. Choose Arduino board and compile. 
0 Comments Read full post »

Adding USB Arduino access in Linux

Posted by admin on May 09, 2015

LadderMaker access to an Arduono via USB on Linux. 

This is a step-by-step cut-and-paste guide to adding a rules file so that non-root users can have access to an Arduino via USB.  This applies to Ubuntu, but should work for other Debian based Linuxes, such as Mint.

Cut and paste the following commands into a Terminal:  (LXterminal is recommended, as it allows mouse right click pasting)

cd /etc/udev/rules.d

sudo nano arduino.rules

This will open an editor, editing the file arduino.rules.  Paste the followint into the file: 

SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="00[0-a][0-f]", MODE="666", SYMLINK+="arduino arduino_$attr{serial}", GROUP="dialout"

SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", MODE="666", SYMLINK+="arduino arduino_nano_$attr{serial}", GROUP="dialout" 

SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", MODE="666", SYMLINK+="arduino arduino_nano_$attr{serial}", GROUP="dialout" 

Type ctrl X.  When prompted: type Y, enter.  This will save the file.

Now disconnect and reconnect the Arduino. 

0 Comments Read full post »

Some Notes on LadderMaker

Posted by admin on April 07, 2015

1)

Many people have commented that the inputs are inverted.  This was done intentionally so that pull-down is active, and optical isolation or pushbuttons will work as expected. The internal pull-ups are activated in the Arduino on all inputs. 

input.png

 

2)

There is a new version of LadderMaker almost ready to publish.  It will be version 108.  The bug that prevents more than one ADC input from working is fixed.  There is also more entries in arduino.rules so that more versions of the Nano will work under Linux.  

3)

There remains an issue with two or more parallel (OR) rungs.  OR rungs that are shorter than the one above, that are not left justified do not work properly:

no_work.png  (Does not work.) 

 

This does work:

OK.png (Works.)

 

I am trying to get this bug fixed, but for now a workaround using internal outputs will be the only option for multiple parallel rungs. 

--Karl

 

0 Comments Read full post »

Arduino Mega and new functions for Ladder Maker

Posted by admin on July 05, 2014

Ladder Maker verson 104 now has the following new features:

  • Arduio Mega2560 support
  • Pulse Width Modulated outputs (for the Mega2560 only)
  • Analog inputs (for the Mega2560 only)
  • + - ÷ x
  • < > + ≤ 
Some notes: multiple PWM elements can be connected to a single output.  The first active PWM element will apply.  This way several speeds can be used on a single output.
 
Timer and Counter can now be used with math.  A 16 bit register stores their value. and is available by charing the name.  
0 Comments Read full post »

Mac Support

Posted by admin on March 01, 2014

Version 0.91 of Ladder Maker includes Mac support.  It does require installing some dependencies using MacPorts. If you have not already, install Xcode and MacPorts.  Then execute the following in a terminal:

  • sudo port selfupdate

  • sudo port install py27-pyqt4 (wait a long time)
  • sudo port install avr-gcc

  • sudo port install avr-libc

  • sudo port install avrdude

This is not as nice as one package that just runs, but the various Mac OS X versions each need the dependencies built for them, so for now this will be the Mac solution.  Macports works well.  I was quite impressed that MacPorts worked perfectly on my old Mac downloading and building these dependencies.

The GUI is the same except the first menu bar entry is "Python" on the Mac version, and has the hardware choice of Arduino or Waltech.

--Karl

0 Comments Read full post »