nxt controler

View previous topic View next topic Go down

nxt controler

Post by freek4ever on Mon Nov 14, 2011 4:12 pm

Use my nxt as analog controlor the motor angel sensors

So you can control an robo ARM whit a robo ARM
Can by nise
avatar
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 21
Location : nederland holand

View user profile

Back to top Go down

Re: nxt controler

Post by RA2lover on Tue Nov 15, 2011 5:10 am

the default nxt firmware won't work well with robotic arm controlling, simply because it has no trigonometric functions at all. i have failed miserably at it already, during preparation for the brazilian robotics olympics.

meanwhile, here is the formula i tried to use, "converted" to lua

Code:

    function ikcontrol(x,y.flip)
    local d= (x^2+y^2)^0.5
    if d>2 then d=2 end
    local a= math.atan2(y,x)
    if flip then k=-1 else k=1 end
    local a1=math.deg(math.floor(a+(math.acos(d/2))))
    local a2=math.floor(-2*math.acos(d/2))
    return a1,a2
    end

you should try using the NXC firmware instead.
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: nxt controler

Post by freek4ever on Tue Nov 15, 2011 2:27 pm

Thanks for thinking whit my but I mean robot in rc controled by nxt robot ARM
avatar
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 21
Location : nederland holand

View user profile

Back to top Go down

Re: nxt controler

Post by freek4ever on Tue Nov 15, 2011 2:32 pm

So if I turn an nxt engine 180 degre the robot in rc does tlhe same or is that the lua you made .I don't no how to use lua
Is the nxc filmware free and is it like the script in rc I like that


Last edited by freek4ever on Tue Nov 15, 2011 2:55 pm; edited 1 time in total
avatar
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 21
Location : nederland holand

View user profile

Back to top Go down

Re: nxt controler

Post by freek4ever on Tue Nov 15, 2011 2:47 pm

I'm that guy on the orz server whit doderijk4
I had that red sing and I made an model like your floating thing in 5 minutes
avatar
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 21
Location : nederland holand

View user profile

Back to top Go down

Re: nxt controler

Post by RA2lover on Sat May 19, 2012 7:22 pm

(epicbump) you'll also need to create a mechanism to map usb input and convert it to keyboard-like input(i don't think RC supports lua's i/o library).
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: nxt controler

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum