Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Interfacing / Re: turn on/off a with php on: February 21, 2010, 08:47:14 am
i'm using windows xp...the blink skecth works..everything from the serial monitor works...  

these are my codes:

if (isset($_GET["t"]))
  if ($_GET["t"]==0)
       $fp=fopen("com3", "w");
       $fp=fopen("com3", "w");
echo "<a href=ard.php?t=0>on</a><br><br>";
echo "<a href=ard.php?t=1>off</a>";

and arduino

int ledPin = 13;
int usbnumber = 0;
void setup() {
    pinMode(ledPin, OUTPUT);

void loop() {
    if (Serial.available() > 0)
      usbnumber =;
    if (usbnumber == 48) {

   if (usbnumber == 49) {


is a very simple code..but i think that arduino don't understand what i send with php
2  Forum 2005-2010 (read only) / Interfacing / turn on/off a with php on: February 20, 2010, 01:19:59 pm
hi guys.... can you help me??
i want simply turn on/off a led with PHP.. can you help me?   pleaaase!  :'(
3  Forum 2005-2010 (read only) / Italiano / Re: incrementare corrente in uscita dal PWM.. on: March 27, 2010, 11:22:52 am
@Calamaro grz... ma potresti dirmi come fare il circuito?? nn so proprio niente di elettro scs la mia ignoranza...
4  Forum 2005-2010 (read only) / Italiano / incrementare corrente in uscita dal PWM.. on: March 27, 2010, 10:49:06 am
buongiorno a tt... mi serve una corrente da min 200/250mA in uscita dai piedini 5 e 6 (quelli PWM dell'arduino 2009).
ho notato che dalla scheda esce 41.6mA...come posso fare per ottenere la corrente desiderata?
ho poca esp in elettro..credo cmq che mi serva un transistor di potenza ma nn voglio rischiare...
grz a tt
PS. mi serve per alimentare un motorino passo-passo  (stepper), per una parte del mio progetto di maturit√† quindi aiuuuuto !
5  Forum 2005-2010 (read only) / Interfacing / from 41.6mA to 200mA on: March 27, 2010, 10:55:27 am
i have to use the pins:5,6(PWM arduino 2009) and 200mA for a can I realize a circuit that let me do this?
i think that i need a tranistor....

sorry for my eng..

thanks for everyone
6  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Serial communication with PHP on: February 20, 2010, 01:10:54 pm
soup can you post your code php and arduino??  I have your same problem..  thanks!! i need help!

sorry for my eng
Pages: [1]