Search found 13 matches

by ZBWillUser
31 March 2012, 8:02 AM
Forum: ZBasic Language
Topic: Help with a new robot.
Replies: 9
Views: 4489

Update:

I hsve the servo and Sharp IR Rangefinder functioning nicely! With this controller: http://www.robotshop.com/dfrobot-4-8-46v-2a-dual-motor-controller.html There are only 2 pins per motor, so the enable seems to be in a permanently enabled state. The pins are M1,M2 for the motor direction and E1,E2 f...
by ZBWillUser
30 March 2012, 13:43 PM
Forum: ZBasic Language
Topic: Help with a new robot.
Replies: 9
Views: 4489

What I am doing now...

I don't have the robot chassis or motors, but I do have a Sharp IR Rangefinder and a servo. I (hopefully) will get the rest of the hardware soon, but until then I have a robot "mock-up" using the sensor, the servo and some LEDs representing the signals to the drive motors. I have a ZX-1280...
by ZBWillUser
30 March 2012, 10:14 AM
Forum: ZBasic Language
Topic: Help with a new robot.
Replies: 9
Views: 4489

Re: Help with a new robot.

This will probably start with RobotShop Rover (Tank Kit) and a simple to use DFRobot motor controller (it only uses two motors to drive the treads). I will use a ZX-24su on a white prototyping board probably double sided foam taped to the chassis and right away have Sharp IR Rangefinder turning on a...
by ZBWillUser
30 March 2012, 7:29 AM
Forum: ZBasic Language
Topic: Help with a new robot.
Replies: 9
Views: 4489

Thank you.

You are absolutely right, I am sorry to have wasted your time.
by ZBWillUser
30 March 2012, 5:17 AM
Forum: ZBasic Language
Topic: Help with a new robot.
Replies: 9
Views: 4489

Help with a new robot.

This thread didn't start out very well (my fault).
But now it is one interesting thread! I am learning a lot!
by ZBWillUser
24 March 2012, 15:08 PM
Forum: ZBasic Language
Topic: Can I control servos and multitask at the same time?
Replies: 7
Views: 2484

Nice!

Yes, I understand. Nice!

In my example I was a lot less elaborate (and precise) and was trying to show a little multitasking as well.

(It also can be done without the SysLib, but that is such a great addition to ZBasic!)

ZBasic is awesome and I wish more people knew that.
by ZBWillUser
24 March 2012, 14:27 PM
Forum: ZBasic Language
Topic: Can I control servos and multitask at the same time?
Replies: 7
Views: 2484

Got it!

Got it! (Basically like this...) Dim taskStack(1 to 100) as Byte sub main() CallTask "MyTask", taskStack 'This works on Channel 2 (B.6) Call OpenPWM(2, 50.0, zxFastPWM)' prepare for 50Hz Fast PWM using channel 2 Call PWM&#...
by ZBWillUser
24 March 2012, 12:44 PM
Forum: ZBasic Language
Topic: Can I control servos and multitask at the same time?
Replies: 7
Views: 2484

Now I need more info on hardware PWM prog for a servo.

You are correct, I have a ZX-1280n (I would think being an n would be a help in this situation). Where are some good examples of using a harware PWM to drive a servo? I am used to using the Servo() command in the Arduino which didn't multitask and didn't run Basic, but wasn't bad for what it was. As...
by ZBWillUser
24 March 2012, 9:23 AM
Forum: ZBasic Language
Topic: Can I control servos and multitask at the same time?
Replies: 7
Views: 2484

Can I control servos and multitask at the same time?

I want to multitask, but I also need to control up to 3 servos at the same time. Will there be any "gotchas" I need to look out for in this situation? I don't want to risk damaging the servos because their timing gets messed up. Would it be better to put servo control in the main task to i...
by ZBWillUser
23 March 2012, 12:20 PM
Forum: ZBasic Language
Topic: ZBasic Evangelism
Replies: 2
Views: 1395

My oops.

I intended to say I WAS ASKED if ZBasic was the same as Zedcor ZBasic, or the ZX Spectrum or ZX81 and I said it was not (I just didn't proofread what I had written). Also I said it only runs on ZX series devices. Same for the Propeller chip. If it ran on a Propeller I would probably have one of thos...
by ZBWillUser
23 March 2012, 9:03 AM
Forum: ZBasic Language
Topic: ZBasic Evangelism
Replies: 2
Views: 1395

ZBasic Evangelism

I love ZBasic and my new ZX-1280n board! This very much is my new favorite language and hardware. I have been asked if ZBasic will run on a Propeller chip, Hah! Also if there is any relationship to ZBasic by Zedcor or the ZX Spectrum computer or even the ZX81 "computer" from way back. :-) ...
by ZBWillUser
16 March 2012, 13:31 PM
Forum: ZX-1281
Topic: Convert 1280 Board to 1280n?
Replies: 2
Views: 7281

Thanks for the quick response.

I will do just that.
by ZBWillUser
16 March 2012, 8:19 AM
Forum: ZX-1281
Topic: Convert 1280 Board to 1280n?
Replies: 2
Views: 7281

Convert 1280 Board to 1280n?

Hi, Is it at all possible to convert a 1280 board to a 1280n by somehow deleting the code on the 1280 and then adding and locking the proper code for the 1280n? (If I could get the 1280n code I would use it one time and then delete my copy of it. I will just need it once.) I am getting two boards, o...