Giter Site home page Giter Site logo

ladderilogical's Introduction

LadderiLogical

Application for creating graphical "Ladder Logic" programs. It includes compiler targeting PIC Assembly.

A program is "written" by laying out tiles representing logical functions (timers, counters etc) on a board and connecting them using red wires (relay tiles). The state of each wire is shown using green dots in real time. The application includes capability to save/open programs in a human readable format based on json (.lil)

IMAGE

To the right of the board there are options to convert the selected tile to a different type and various tile specific options (such as configuring which way to accept IO from). Further right there is a panel allowing the user to manually interact with flags (those will be compiled to the pins on the PIC). Flags can we used to transmit the state of a wire "wirelessly" by specifying a unique text identifier. The application resolves any errors that may arise from multiple sources trying to drive the same flag

###Tile Types:

Tile - a "do nothing tile"
Relay - A wire that conducts/transmits a signal
Source - Outputs an on signal in all directions
Flag - Drives a flag with the value of its input
Generator - Outputs a signal depending on a flag
Switch - Conducts signal when the selected flag is high (or low when inverted)
Counter - Outputs high after the selected number of rising edges
Pulsar - Generates a square wave of a given frequency
Timer - Either ensures a pules is at least n ms long (hold mode) or delays the rising edge (and turns it into a as-short-as-possible pulse) by n ms (delay monostable)
Sequencer - Drives a sequence on flags in a one-hot fashion. Move to the next flag on a rising edge

To upload it to a PIC you need open the generated file in MPLab and assemble it before uploading.

###Keyboard shortcuts:

	S: Select tile
	A: Place wire and automaticly determine direction
	F: Place flag input tile
	H: Place switch tile and configure input/output horizontaly
	X: Delete tile
	
	The arrow keys move the selection around
	
	Holding shift prevents the tool from automatically switching 
	back to the select tool after a single use
	

Building

This collection of python scipts can be converted into an Mac Application bundle using py2app. Just run python3 setup_mac.py py2app

Michal Adamkiewicz 2017

ladderilogical's People

Contributors

mikadam avatar mikh3x4 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

galaxyloop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.