Recent Posts

Pages: [1] 2 3 ... 10
1
The Vin pin on the arduino board is connected directly with the battery, although it is shared with a motor driver (l298) powering 2 motors.
Maybe that is where the problem lies, and you are blaming the wrong thing.
2
General Electronics / Re: Time for a new breadbord d...
Last post by 6v6gt - Today at 12:43 pm
You are talking about this, a solderless breadboard ? 



It does have power rails.
For crocodile clips (or multimeter), simply insert single header pins inverted into the breadboard at an appropriate point.
Multiple breadboards can be fixed together using the built mounting lugs.
I can't imagine a 3 dimensional construction using breadboards. The components may fall out. The same with turning the board over to use the proposed measurement points on the back.

The main problem I have with breadboards is the reliability of the connections, not its fundamental design. Maybe that is where you should focus your efforts in the contact design or the contact plating material.

3
Editor / Unable to connect to ardunio u...
Last post by swillis - Today at 12:42 pm
Hi all,

I hope someone can help.

I am a bit of a newbie to Arduino and I am unable to connect to my ardunio uno on my Window 7 Pro computer using Chrome browser using Arduino Web editor.  I get the following message "No Plugin Connection. Uploading is disabled until you reconnect."

I have tried Mozilla Firefox but get the same issue.  I have followed the getting started instructions several times and downloaded and installed the agent (version 1.1.60-8f8e4c0) and restarted the computer but nothing seems to work.

My Arduino is showing up as a device on the computer (Com10) and the lights are on.  I updated the chrome browser as well (Version 61.0.3163.100 (Official Build) (32-bit)).

I can't find the reason why it's not working.  What else should I try?

Thanks
4
Deutsch / String zerlegen und ich Zahlen...
Last post by Muecke - Today at 12:42 pm
Hallo miteinander,


ich möchte über die Serielle schnitt stelle befehle empfangen, dies Befehle muss ich dann als erstes zerlegen und aufteilen.

Das Protokoll sieht so aus.

Trennzeichen ;

Start mit dem Befehl
Folgen 5 Werte (alles Zahlen können mit Komma sein)

z.B.
Befehl;Wert1;Wert2;Wert3;Wert4;Wert5


Jetzt habe ich mir erst ein mal eine Kleien Hilfe gebaut, und die werte richtig trennen zu können, denn dann muss ich ja auch Prüfen ob alle werte angekommen sind ob diese Plausibel sind und erst dann kann ich anfangen zu arbeiten.


Daher ist die Übertragung über die Serielle Schnittstelle erst ein mal mit der Variable "text" definiert worden.



Das Programm läuft nur 1 mal durch, das ich auch was auf der Seriellen Schnittstelle sehen kann!


Ich Stolpere jedoch an ein Paar Dingen.


1) Warum wird meine Variable "text" verändert? (von Start zum ende)
     nicht wichtig für das Programm, ich will es aber verstehen.
2) Wie kann ich den Inhalt der Variable in eine Zahl mit Nachkommastellen wandeln?
    meine Kommastelle geht immer flöten :-(



Gruß Mücke


Code: [Select]

int j = 0;

void setup()
{
    Serial.begin(9600);
    while (!Serial) {} // Warten Sie, bis der serielle Port verbunden ist.
}

void loop() {
 
  while (j == 1); // Ausgabe soll nur 1 mal erfolgen
  {

    char* text = "X;1;1;100;400.5";   // Beispiel übertragung über die Serielle Schnittstelle
   
   Serial.println("#################### Start ####################");
   Serial.print("Uebertragung_Start: ");  Serial.println(text); // Alles was Uebertragen wurde

    char* verarbeiten = text;                                   // Uebertragung in neue Variable speichern
   
    char* token = strtok(verarbeiten, ";");                     // Variablen Inhalt bei ; Trennen   
    char* Achse = token;
   
    token= strtok(0, ";");
    char* EAN = token;
   
    token = strtok(0, ";");
    char* DIR = token;
   
    token = strtok(0, ";");
    char* RPM = token;
   
    token = strtok(0, ";");
    char* PLU = token;

    float PLU_Zahl = atoi(PLU); // das komma fehlt
//    float PLU_Zahl = atol(PLU); // das komma fehlt

    PLU_Zahl = PLU_Zahl + 200;    // Testen ob es wirklich eine Zahl ist, mit Zahlen kann man rechnen :-)

   Serial.print("Achse: "); Serial.println(Achse);               // Einzelne Werte ausgeben
   Serial.print("ENA: ");   Serial.println(EAN);                // Einzelne Werte ausgeben
   Serial.print("DIR: ");   Serial.println(DIR);                // Einzelne Werte ausgeben
   Serial.print("RPM: ");   Serial.println(RPM);                // Einzelne Werte ausgeben
   Serial.print("PLU: ");   Serial.println(PLU);                // Einzelne Werte ausgeben
   Serial.print("PLU Zahl: ");   Serial.println(PLU_Zahl);                // Einzelne Werte ausgeben   
   Serial.print("Uebertragung_Ende: "); Serial.println(text);   // Vollstaendige Uebertragung ausgeben
   
   j++; // Zaehler fuer die Schleife hoch zaehlen
  }  // while (j == 1);

} // void loop()
5
Hi guys,

I've been using the HC06 bluetooth module to communicate between my phone (samsung s7) and an arduino atmega2560.

Everything runs fine when the arduino is powered by the USB cable. Software works as intended, communaction good and hardware response as it should (an RC car controlled with phone). I haven't been able to find the answer from similar forum posts.

When I power the arduino using batteries (8xAA = 12V), the bluetooth module will frequently reset itself and cuts its connection. This usually happens in 10-20 seconds. I have connected the bluetooth module to the 5v output pin on the arduino board. The Vin pin on the arduino board is connected directly with the battery, although it is shared with a motor driver (l298) powering 2 motors.

Is there something significantly different with the power outputs from a battery compared to the usb connection?


6
I am sorry, I am increasing your frustration level... I am completely unaware of all these things... I just gone through the internet to read the buttons of control panel via Aurdino to use it in my own car.

If am wasting your time... then i am sorry for that i will not post any thing from now..

but from the above post of mine..
i meant to say that mySerial.Begin i have tried with all....
but when i get the proper input is when these baud rates are set...

Serial.Begin(57600)
mySerial.Begin(9600)

Then i can see all these inputs in the monitor at 57600..

Yes you are right i am receiving the characters and when i press button i see a lot of characters... that means data is coming from the control panel... but the thing is they are looking like garbage for me to read the correct button....

So, I have two confusions...

1. Data is coming continuously even i dont press any button (in slow speed)..
2. When i press a button lot of data displays but in the garbage form as i have shown you in the images...
7
Deutsch / Re: Benötige Hilfe mit dem Tou...
Last post by stoeger - Today at 12:35 pm
Diese Werte irritieren mich, da die analogen Eingänge nur Werte bis 1023 liefern:
Code: [Select]
#define TS_MAXX 3800

#define TS_MAXY 4000


So siehst Du die unberechneten Werte:
Code: [Select]
  if (p.z > MINPRESSURE && p.z < MAXPRESSURE) {
      Serial.print("Pressed, X: "); Serial.print(p.x); Serial.print(", Y: "); Serial.print(p.y); Serial.println();
   }


Vermutlich beziehst Du die MIN- und MAX-Werte auf die Größe des Displays anstelle auf die Werte der analogen Eingänge.

Diese Zeile ergibt für mich keinen Sinn:
Code: [Select]
    p.x = p.y;

Hatte diese Werte nur zum testen verwendet, so stehen sie wirklich im Programm.

Code: [Select]
//Touch For New ILI9341 TP
#define TS_MINX 120
#define TS_MAXX 900

#define TS_MINY 70
#define TS_MAXY 920

Code: [Select]

 // scale from 0->1023 to tft.width
     p.x = map(p.x, TS_MINY, TS_MAXX, 0, tft.width());
    p.y = (tft.height()-map(p.y, TS_MINX, TS_MAXY, 0, tft.height()));
8
Sensors / HELP ON MPU6050
Last post by TheTechnopath - Today at 12:33 pm
I am using a MPU 6050 . I am trying to receive values from it . I was successful, but I cannot understand what those values are and how they can be changed and used . can anyone help me?
9
Hello, I am having som problems with my arduino. I recently was editing some code of one of my projects and changed the output pins to 0 and 1 (RX and TX), because I thought they would work like any other. I found out that they are a little different, but that should only matter when you are having serial communication, which I do not have - I just used "digitalWrite". After I changed the pins to RX and TX I could not upload any code to my arduino. It reports the following error.

Code: [Select]

Archiving built core (caching) in: C:\Users\SIMONF~1\AppData\Local\Temp\arduino_cache_329785\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\SIMONF~1\AppData\Local\Temp\arduino_build_165355/Blink.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe1

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.


I did not save the exact code, but it was almost simular to this one:

Code: [Select]

int DirPin = 1; //Direction pin
int StepPin = 2; //Stepper pin

//TID
long sec = 1000L;
long minute = (sec*60);
long hour = (minute*60);

void setup() {
  pinMode(DirPin, OUTPUT);
  pinMode(StepPin, OUTPUT);
  digitalWrite(DirPin, HIGH); //Defines direction of rotation
  digitalWrite(StepPin, LOW);
}

void loop() {
  unsigned long Time = millis();
if (Time > (5*sec)) //Defines when the motor starts after arduino powers on
  {
  digitalWrite(StepPin, HIGH);
  delayMicroseconds(500);
  digitalWrite(StepPin, LOW);
  delayMicroseconds(500);
  }
}


I did some research and figured it might be the bootloader. So i tried to burn the bootloader with another arduino (which works). I connected the arduinos like in the guide
https://www.arduino.cc/en/Tutorial/ArduinoISP
with the 10 uF capacitor between reset and ground of the working arduino. I am sure the rest of the wiring is correct.
When doing this i get the following error.

Code: [Select]

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM6 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM6
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

Error while burning bootloader.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xff0000
avrdude: Expected signature for ATmega328P is 1E 95 0F
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.


Both of the arduinos have the ATMEGA382P-PU chpis.
Have I fried the chip of the arduino by using RX and TX?

Have I fried the chip by using RX and TX?

Kind regards Simon
10
Français / Re: servo moteur halloween
Last post by neusindam - Today at 12:27 pm
Bonjour,

Desolé mais je n'ai pas recu de notifs suite a votre réponse.

Justement, le code...

Comme je cherche à attacher 1 servo 1 bouton qui ne sert que a allumer et eteindre le mouvement donné, je ne trouve rien...

Je trouve plein d'exemple sur 2 boutons 1 servo mais aucun dans le sens que je recherche.

Si je fais un organigramme:

- PIN recoit une impulsion
- Servo fonctionne dans l'angle donné 0,90 et vice versa sans arreter
- PIN recoit une 2eme implusion
- Servo se stoppe a son ZERO

Etant novice, commencant des cours sur internet, cela est un peu fort pour moi. Du coup, je me suis dis qu'ici on pourrait m'aider...

Mon projet est bien plus grand encore mais cela me mettrai sur la voie pour d'autres applications que je prevois aussi lol

PS : je ne demande pas un code mais deja un demarrage ce serait super genial

Merci
Pages: [1] 2 3 ... 10