Show Posts
Pages: 1 ... 44 45 [46]
676  Forum 2005-2010 (read only) / Bar Sport / Re: A Rainbowduino project contest on: August 18, 2009, 11:02:05 pm
Damn! That video is really cool!

And I have to say, this is awesome! Contests are a good way to get people interested not only in the Arduino, but your products as well!!

I hope you don't mind if I link this on Letsmakerobots.com  I know it's not exactly a robot, but Arduino related contests are always exciting!

Especially if there's a prize that robotic-fanatics would go crazy for, you'll get alot of great applications! smiley-grin

I need to order me a Rainbowduino to get started, I've been so worried about getting my RF links (from you guys, awesome pair) to transmit some information to my LCD debug station that I haven't even purchased any new toys.. that's SO not like me.

Do keep us updated! You should set up an official page on Seeedstudio.com so we can link to it directly smiley-grin
677  Forum 2005-2010 (read only) / Uno Punto Zero / Re: More c# & VB.net source code, together with scetch on: November 15, 2010, 01:36:10 pm
http://www.acraigie.com/programming/firmatavb/default.html

After downloading and installing (following their instructions)  Include it with your Visual Basic project, and you just need to make sure before you use it, you set the output to SERVO.
Code:
Imports Firmata
Public Class Form1
    Dim arduino As FirmataVB
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        arduino.PinMode(8, FirmataVB.SERVO)
    End Sub

    Public Sub setServo(ByVal SERVO_PIN As Byte, ByVal SERVO_VALUE As Byte)
        If SERVO_VALUE > 179 Then
            SERVO_VALUE = 179
        End If
        arduino.AnalogWrite(SERVO_PIN, SERVO_VALUE)
    End Sub
End Class
Keep in mind this is for the Visual Basic edition, you should be able to get the C# code from it.  

With the Firmata DLL downloaded, OUTPUT is misspelled, so just a heads up. So to set an OUTPUT for LED's etc, you'll need to either spell it OUTUPT or use the integer value 1. (I just declare a new variable at the beginning.. dim OUTPUT as byte = 1)

Other than that, after the pin is set to SERVO, you need to use analogWrite instead of servo.write used normally.
Pages: 1 ... 44 45 [46]