faster Loop_event

If you have a question about the software please ask it here.

Re: faster Loop_event

Postby odino87 » Thu May 11, 2023 7:19 am

to made the job asked by my client for now I'll use the system as it is now.
I'll save the point cloud at lower speed and then I'll recontruct the mesh using MeshLab. At the moment I have to start scanning some piece for my client to make some test.
Then in the mean time I'll try implementing a better algorithm to save a more dense mesh.

for what I know about Lidar scanner (like the real sense one) they use a different method to scan the object. It should be a matrix array scanning, whith much lower resolution compared to the sensor I have now (I have HG-C1050, 30mm scanning range, centered at 50mm from the sensor, with 0.03mm Repeatability). I need high repeatibility and precision in zSensing to be able to scan very fine relief for my client. I have a client with hundres of photo frame die hand made from various artisan during the past years and he want to digitalize them.

I have to ask some other things related to properties preferences and event handler but I'll open a separated thread about that stuff.
odino87
 
Posts: 16
Joined: Mon Mar 20, 2023 3:02 pm

Re: faster Loop_event

Postby odino87 » Mon May 22, 2023 7:31 pm

there are the first test resoult of a scanning.
Y distance is about 0.5mm
scanning feed rate is about 300mm/min (quite slow compared with my first thoughts :( )
anyway I was wondering if it's possibile to wire the sensor directly to the AXBB board instead using an arduino as voltage reader.
The sensor work with 24V (from external power supply) and it give a 0 to 5V analog signal as as output.
The arduino has 10bit precision, while uccnc can handle 16bit precision (so about 64K value againt the 1k value of the arduino) using the analog input channel.

I was wondering if I could wire the analog signal out to the AI2 pin and the ground PIN to the 5V0 pin of the power out.
At moment on my AXBB I use a potentiometer for feed rate override on AI1 pin (the classic wiring diagram from the manual).
I could use the same PSU that I use for the AXBB-E to power up the sensor, but I don't know if there will be some conflict or wiring problem (and damage) doing that.

PS: on the current arduino wiring the arduino uno is powered using USB from the PC (for comunication) and the sensor analog signal is wirired to Analog0, while the ground is wired to arduino GND.
So the power supply for arduino is the usb 5V, and the 5V signal is coming from other source.
Attachments
dd57b1fd-b521-4a38-86fc-12ec69974c92.jpg
bd35fd19-d4b2-4759-abf2-be47d6c92022.jpg
odino87
 
Posts: 16
Joined: Mon Mar 20, 2023 3:02 pm

Re: faster Loop_event

Postby odino87 » Mon May 29, 2023 7:52 pm

As I wrote in the first thread I made today was able to test a direct wiring of the sensor with the AXBB-E board.
Now the sensor reading timing will be lower (cause of the main loop time) but the sensor reading is much stable.
In the test using arduino as analog reader the value was fluctuating of one unit (for example between 365 and 366).
This will give at the best a fluctuation of 1/1024 (0.0009765).
Now the value is much more stable and it will not fluctuate so often. From the first test the value can fluctuate of 20unit, so a precision of 20/65535 (0.000305).
So it should be 3 times much reliable.

I have to rewrite the core of the plug in, but I think it will give better result
odino87
 
Posts: 16
Joined: Mon Mar 20, 2023 3:02 pm

Previous

Return to Ask a question from support here

Who is online

Users browsing this forum: iopturbo and 20 guests

cron