Recent Posts

Pages: [1] 2 3 ... 10
1
Generale / Rimuovere mail dal profilo
Last post by Saimonzac - Today at 10:22 pm
Buonasera, premetto che sono nuovo e spero che questa sia la sezione adatta;
volevo sapere come si fa a rimuovere l'icona presente a lato di ogni post dove è presente la mia mail, ho visto che alcuni utenti non c'è l'hanno.
Grazie
2
Robotics / Re: Optimal actuator to move a...
Last post by vinceherman - Today at 10:22 pm
Now the delay was on my part.  :)  Just got back from vacation.

I did order some of the sparkfun thumb joysticks.  When they get here, I will print up a clip and see if I can arrange the servos and write a simple script to move the joystick.

I might even see if I can work some PID logic in to it.
3
Ranch if not equal

If the Z flag is not zero, jump to delay
4
dec decrements the values held in those registers. It sets the zero flag if the result is 0.
brne is a conditional branch that is taken only if the zero flag is not set - and if it is, they go back to the delay label. decrementing the register that was previously 0 makes it roll over. First part of the delay happens 256 times for each time that the second part does, and the second part happens 256 times per

So it's a delay based on the contents of r16... (which gets set to 0x40), working out to 4.2 million passes through the delay, and hence like... a second or so?
5
Do you mean ADB == Apple Desktop Bus?
What do you want to connect? to what purpose?
Apple Desktop Bus to get an old obsolete AEK keyboard working. Why would I do that? Orange Alps.
6
Programming Questions / Re: time issue: millis() not p...
Last post by Wawa - Today at 10:17 pm
For a reason unknown to me..
Maybe the HC340 uses stronger internal pull up.
You can measure pull up current with a DMM set to 200mA.
Measure current from TX to ground and from RX to ground.
No serial trafic (bare sketch), and everything removed (just USB power).
Post values. It might help others.
My Uno clone (CH340):
pin 0: 7.9mA
pin 1: 3.2mA
Leo..
7
Software / Re: Arduino mega trasmette tra...
Last post by Saimonzac - Today at 10:16 pm
Fatto
8
Programming Questions / send GET text as SMS
Last post by ovex - Today at 10:15 pm
Hi,

I will like to send the GET txt as SMS...
Example http://192.168.2.66\text-to-send?

I am stock on extracting the text from get and pars it to Send Message function
can someone guide me?

##############
here i have to read someone the get and call sms with that string.... but no idea how to ...
if(readString.indexOf("sms") >0)
      {
           SendMessage();
           
    }
################


Code: [Select]
#include <SoftwareSerial.h>
#include <Ethernet.h>
#include <SPI.h>
byte mac[] = {
  0x90, 0xA2, 0xBA, 0x26, 0x26, 0x36
}; //MAC address found on the back of your ethernet shield.
IPAddress ip(192, 168, 2, 66); // IP address dependent upon your network addresses.
EthernetServer server(80);

String readString = String(30); //string
char sms;


SoftwareSerial mySerial(8, 9);

void setup()
{
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
  mySerial.begin(9600);   // Setting the baud rate of GSM Module 
  Serial.begin(9600);    // Setting the baud rate of Serial Monitor (Arduino)
  delay(100);
}


void loop()
{
EthernetClient client = server.available();
  if (client) {
  while (client.connected()) {
   if (client.available()) {
    char c = client.read();
     //read char by char HTTP request
    if (readString.length() < 20)
      {
        //store characters to string
        readString += c; //replaces readString.append(c);
      }
        //output chars to serial port
        Serial.print(c);
        //if HTTP request has ended
        if (c == '\n') {
                 //dirty skip of "GET /favicon.ico HTTP/1.1"
                  if (readString.indexOf("?") <0)
                  {
            //skip everything
          }
          else
          //- PROCESARE GET
if(readString.indexOf("sms") >0)
      {
           SendMessage();
           
    }
client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
     
  client.println("</html>");
          //clearing string for next read
          readString="";
          //stopping client
          client.stop(); 

  }}}}}

 void SendMessage()
{
  mySerial.println("AT+CMGF=1");    //Sets the GSM Module in Text Mode
  delay(1000);  // Delay of 1000 milli seconds or 1 second
  mySerial.println("AT+CMGS=\"+XXXXXX\"\r"); // Replace x with mobile number
  delay(1000);
  mySerial.println("I am SMS from GSM Module");// The SMS text you want to send
  delay(100);
   mySerial.println((char)26);// ASCII code of CTRL+Z
  delay(1000);
}

 


9
How do you suggest to connect the power supply?
I don't understand why that question is a response to my Reply #17.

What exactly is your mind?

...R
10
General Electronics / Arduino generating AC
Last post by Nikola19992 - Today at 10:15 pm
So,I have just designed a step-up conventer (12VDC to 30V DC) and now I need to turn it into AC with frequency of about 1000Hz.So I would like to use arduino to switch mosfets/transistors or something like that.Current will be less than 200mA.(I have cuple of 2N7000 and BC337).
I would like to AVOID USING TRANSFORMER.Any schematics or something?
Pages: [1] 2 3 ... 10