Robot Base - new bu...
 
Notifications
Clear all

Robot Base - new build

126 Posts
7 Users
18 Reactions
4,679 Views
TFMcCarthy
(@tfmccarthy)
Member
Joined: 9 months ago
Posts: 331
 

@robotbuilder

fyi - I've fallen into the DLL tar pit. I won't get stuck, but I want to see if I can get to the bottom of it.

The issue I'm looking at deals with the interface between FB and escaoi.dll. It explains why the imginvert program wouldn't run but raises a larger issue.

Have you ever gotten a FB program to successfully use escapi.dll?

The issue I'm running into is the function call to initCapture always fails on my system because the argument memory layout is different between the program and the DLL. The structure SimpleCapParams isn't passed properly to the DLL. Simple arguments passed on the stack work fine, but memory pointers are invalid.

If so, I don't see how escapi would ever work.

These are issues I dealt with 20 or more years ago, so I have re-learn the diagnostic techniques and the minutia of DLL mechanics.

The one who has the most fun, wins!


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 6 years ago
Posts: 2330
Topic starter  

@tfmccarthy 

It works fine for me?

I just put escapi.dll in the same folder as my image capture program along with escapi.bi

ESCAPI3 (Windows 32/64-bit) - freebasic.net

This was another way although I don't use it for some reason.

fbvideoclass (Windows 32/64-bit) - freebasic.net

 


   
ReplyQuote
TFMcCarthy
(@tfmccarthy)
Member
Joined: 9 months ago
Posts: 331
 

@robotbuilder

Posted by: @robotbuilder

It works fine for me?

<aside>

You use a question mark at the end of a sentence that doesn't seem to be a question. That throws me off balance, which is easy to do. Just sayin'

</aside>

The Good News is it's a 32-bit v. 64-bit issue. I was building a 64-bit app and that has problems passing structure data via pointers. Switching to the 32-bit compiler seems to resolve it. So, I'm back on the path forward.

 

The one who has the most fun, wins!


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 6 years ago
Posts: 2330
Topic starter  

@tfmccarthy 

You use a question mark at the end of a sentence that doesn't seem to be a question. That throws me off balance, which is easy to do. Just sayin'

Expression of suprise. "Wonder why it doesn't work for you when it works for me?"

 


   
ReplyQuote
TFMcCarthy
(@tfmccarthy)
Member
Joined: 9 months ago
Posts: 331
 

@robotbuilder 

Posted by: @robotbuilder

Expression of surprise.

OK. Sort of like, "What's all this then?"

Speaking of which, is the furniture growing?

trolleybot

"Trolleybot"?

And is that some sort of electronics on the second shelf there?

Your RPi with camera, perhaps?

 

The one who has the most fun, wins!


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 6 years ago
Posts: 2330
Topic starter  

@tfmccarthy 

That was an old attempt before the RPi existed or the Arduino Boards.

It used 24v window wiper motors that had been adapted for use for an old electric wheel chair and thus came with proper bearings to carry the load rather than the motor shaft bearings. It was powerful enough to carry a person around. The base was actually a steel frame I welded together on which I added the wooden shelves.

The second shelf has the K8055 board that you could use to control an electronic interface via the usb port and a MOSFET hbridge that I wired up on a breadboard to handle the motor power control requirements. It worked great and I could remote control it via a wireless keyboard to the laptop and I had just started experimenting with it doing autonomous maneuvers when one of the motors failed and oil leaked everywhere.

Later the dronebot workshop came along and I thought maybe a smaller robot using components from an old robotic vacuum cleaner plus the k8055 board.

https://forum.dronebotworkshop.com/user-robot-projects/k8055-robot/#post-4101

It has been an on/off project but mainly an off project for lack of spare time and motivation.


   
ReplyQuote
Page 9 / 9