Page 10 of 16

Re: LitePlacer-rmod Updates

Posted: Wed Sep 02, 2015 11:50 pm
by Covert
I made a change to the hole calibration today. Currently is looks for every second hole and does that 4 times and uses that for the angle and pitch calculation.

I added a new data field "TapeLength" that is the amount of parts on the tape. I'm mainly building a panel with 16 boards. It has up to 4 of the same parts so up to 64 parts. My calibration routine Takes the starting hole, a hold half way up the tape and the last hole.

Reliability of the machine finding parts at the end of a long tape (32+ parts) have greatly improved.

Re: LitePlacer-rmod Updates

Posted: Thu Sep 03, 2015 9:27 am
by tiji
Hello, I would love to use this version of liveplacer, as I still have to try the machine. But I do not understand how to install. Can you put an install. exe? ;)

Re: LitePlacer-rmod Updates

Posted: Fri Sep 04, 2015 10:13 am
by tiji
:D

Re: LitePlacer-rmod Updates

Posted: Mon Sep 07, 2015 2:16 am
by Covert
tiji wrote:Hello, I would love to use this version of liveplacer, as I still have to try the machine. But I do not understand how to install. Can you put an install. exe? ;)
Here is the last update of the code by Reza. It has a installer from memory.

https://www.dropbox.com/s/wxf4i82e1frvn ... 4.zip?dl=0

Re: LitePlacer-rmod Updates

Posted: Tue Oct 06, 2015 12:41 pm
by dandumit
Hello All,
I have installed TinyG V2 on an ARduino DUe.
On computer appears 2 ports : - TinyG V2 (Control Chanel) (Com10)
- TinyG V2 (Data Chanel) (Com9)

When I try to connect I get an error :

Code: Select all

{"r":{"sr":{"line":0,"posx":0.000,"posy":0.000,"posz":0.000,"posa":0.000,"feed":0.00,"vel":0.00,"unit":1,"coor":1,"dist":0,"frmo":1,"momo":4,"stat":1}},"f":[1,0,9]}
> {"sr":""}
########## Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 13.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at LitePlacer.CNC.InterpretLine(String line)
   at LitePlacer.SerialComm.DataReceived(Object sender, SerialDataReceivedEventArgs e)
{"r":{"sr":{"line":0,"posx":0.000,"posy":0.000,"posz":0.000,"posa":0.000,"feed":0.00,"vel":0.00,"unit":1,"coor":1,"dist":0,"frmo":1,"momo":4,"stat":1}},"f":[1,0,9]}
> {"xjm":""}
{"r":{"xjm":20},"f":[1,0,10]}
> {"xvm":""}
{"r":{"xvm":1000},"f":[1,0,10]}
> {"xsv":""}
{"r":{"xsv":500},"f":[1,0,10]}
> {"xsn":""}
{"r":{"xsn":1},"f":[1,0,10]}
> {"xjh":""}
{"r":{"xjh":20},"f":[1,0,10]}
{"r":{"xsx":0},"f":[1,0,10]}
> {"xsx":""}
> {"1mi":""}
{"r":{"1mi":8},"f":[1,0,10]}
> {"1sa":""}
{"r":{"1sa":1.800},"f":[1,0,10]}
> {"1tr":""}
{"r":{"1tr":1.2500},"f":[1,0,10]}
> {"yjm":""}
{"r":{"yjm":20},"f":[1,0,10]}
> {"yvm":""}
{"r":{"yvm":1000},"f":[1,0,10]}
> {"ysn":""}
{"r":{"ysn":1},"f":[1,0,10]}
> {"ysx":""}
{"r":{"ysx":0},"f":[1,0,10]}
> {"yjh":""}
{"r":{"yjh":20},"f":[1,0,10]}
> {"ysv":""}
{"r":{"ysv":500},"f":[1,0,10]}
> {"2mi":""}
{"r":{"2mi":8},"f":[1,0,10]}
> {"2sa":""}
{"r":{"2sa":1.800},"f":[1,0,10]}
> {"2tr":""}
{"r":{"2tr":1.2500},"f":[1,0,10]}
> {"zjm":""}
{"r":{"zjm":20},"f":[1,0,10]}
> {"zvm":""}
{"r":{"zvm":1000},"f":[1,0,10]}
> {"zsn":""}
{"r":{"zsn":3},"f":[1,0,10]}
> {"zsx":""}
{"r":{"zsx":2},"f":[1,0,10]}
> {"zjh":""}
{"r":{"zjh":20},"f":[1,0,10]}
> {"zsv":""}
{"r":{"zsv":400},"f":[1,0,10]}
> {"3mi":""}
{"r":{"3mi":8},"f":[1,0,10]}
> {"3sa":""}
{"r":{"3sa":1.800},"f":[1,0,10]}
> {"3tr":""}
{"r":{"3tr":1.2500},"f":[1,0,10]}
> {"ajm":""}
{"r":{"ajm":5760},"f":[1,0,10]}
> {"avm":""}
{"r":{"avm":288000},"f":[1,0,10]}
> {"4mi":""}
{"r":{"4mi":8},"f":[1,0,10]}
> {"4sa":""}
{"r":{"4sa":1.800},"f":[1,0,10]}
> {"4tr":""}
{"r":{"4tr":360.0000},"f":[1,0,10]}
> {"4po":""}
{"r":{"4po":0},"f":[1,0,10]}
> {"zsn",3}
{"r":{"zsn":3},"f":[1,0,9]}
> {"zsx",2}
{"r":{"zsx":2},"f":[1,0,9]}
> {"zzb",2}
{"r":{"zzb":2.000},"f":[1,0,9]}
No _textBox or _maskedText For Field zzb
Any hints ?

Re: LitePlacer-rmod Updates

Posted: Tue Oct 06, 2015 2:54 pm
by JuKu
I'm not familiar with TinyG V2, nor with details of r-mod Json interpreter. Still. TinyG V1 has two formats for Json. You can switch between these by commands $js=0 and $js=1. Your capture is format 1. Maybe it can handle the other format better?

Re: LitePlacer-rmod Updates

Posted: Tue Oct 06, 2015 3:22 pm
by dandumit
Hello JuKu for fast answer.

Unfortunately sending command from LitePlacer doesn't succeed. I got error all the time.

Connecting G2 board to ChiliPeper I got :

Code: Select all

 $js
 {"ej":""}
 
 
 $js=0
 {"ej":""}
 $js=1
 {"ej":""}
 
Probably it's not what is expected...

Re: LitePlacer-rmod Updates

Posted: Tue Oct 06, 2015 3:45 pm
by JuKu
TinyG support forum is here: https://www.synthetos.com/forums/tinyg/tinyg-support/. You might get more details about V2 Json handling there, although I think this is more r-mod issue than TinyGs'.

Re: LitePlacer-rmod Updates

Posted: Tue Oct 13, 2015 11:43 pm
by thereza
long time no talk. wondering if anyone has made any modifications to my version of the code?

also what's the issue with tinyg? i made a version that checks the ADC on the tinyG but requires updating the tinyG firmware. that's only if you enable the pickup detection.

Re: LitePlacer-rmod Updates

Posted: Fri Oct 16, 2015 7:50 am
by Knas
I've made a bunch of edits to the code but only locally, as someone who's been programming for 25 years, i've never before indulged in an open source / multi collab project so i'm not sure what the ethics are involving adding and subtracting from the code at will (i assume there's some type of consensus needed to make deeper changes?) and i've never used version control.
I'd be thrilled if someone could give me a crash course (or point me to one) on how to use the version control stuff as i'd like to contribute what i've done as well as be able to use other peoples updates in the future. I guess the version i have is about a month old at this point and i'm not sure how my additions / edits would affect the overall sourced code.

So far i've added direct position-based tape adding (first hole / last hole) which skips the vision and is *much* faster because of it. I've added a "simulation mode" for debugging the code without having to sit by the machine, i'm currently adding feeder support and X/Y compensation for Z-tilt (basically my machines Z doesn't go down in a perfect angle and i'm not good enough of a mechanical engineer to fix it it seems, but it should be super easy to add in code). Next up i will add automatic nozzle change support and some other small things.

I've also done a bunch of hardware upgrades i'd like to write about at some point later on.

Karl