Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Installation & Troubleshooting / Problem Uploading Code
Last post by w00dy - Today at 08:02 pm
Hi Everyone.

I'm a newbie and until earlier I was thoroughly enjoying my tinker time with my Arduino, however for some reason I get the following message when I try to upload my sketches.  HERES THE SKETCH.

Code: [Select]

const int tiltPin = 0;
const int ledEast = 2;
const int ledWest = 10;

void setup() {
  // put your setup code here, to run once:
pinMode (tiltPin,INPUT);
pinMode (ledEast,OUTPUT);
pinMode (ledWest,OUTPUT);
Serial.begin(115200);
attachInterrupt(digitalPinToInterrupt(0), tilted, CHANGE);
            }

void loop() {
  // put your main code here, to run repeatedly:

unsigned long elapsed = millis();

Serial.println(elapsed);
delay(500);

}

void tilted()
{   //subroutine for when interupt occurs.
  if (tiltPin == HIGH){
    digitalWrite (ledEast,HIGH);
    digitalWrite (ledWest, LOW);
    }
   
    else{
      digitalWrite (ledWest,HIGH);
      digitalWrite (ledEast, LOW);
  }
}











Output in Compiling Window.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.-patmega328p -carduino
-PCOM3 -b115200 -D -Uflash:w:C:\Users\dwood\AppData\Local\Temp\arduino_build_13354/Hourglassplay.ino.hex:i

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
         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                    : COM3
         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=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x7a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x7a

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x58
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xd0
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

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




Is anyone able to help?, ive had a little look on the forum and I think it is suggested I re burn by bootloader?, is this advisable and how do I do it?

Huge thanks in advance.

12
How do you connect that SD card board to the Arduino? Do you have schematic for it? I cannot find any useful information about that board, seems to be one of the overly cheap Chinese boards: https://www.reddit.com/r/arduino/comments/2vkp81/fyi_catalex_microsd_card_adapter_does_not_play/. Does it have a level converter onboard? Do you feed it with 3V3 or 5V? Is a voltage regulator on that board? SD cards work with 3V3 and all SPI signals must have that voltage level.

Try removing the SD card board. If it works then you can try the work-around mentioned in the above post.
13
Sensors / Making LM358 Amplifier Module ...
Last post by gumavkleci - Today at 08:01 pm
Hi,
I am trying to read quite low amps with arduion, using the shunt resistor. The problem is the amps are so small i get zeros on analog pins, so i am trying to amplify it with LM358 Amplifier Module (www.openimpulse.com/lm358-amplifier-module).

I have very simple circit now, just to try to find out how exacly it works. (Circuit attached).

If the module is not connected to the resistor, the arduino says something about 510 (+-10) which is half of the power source on the amp and that should be okay from what i understand.

But when i connect it to the resistor it shows these values (first is voltage on source, second is on the OUT of the amplifier):

Code: [Select]

71
400

76
561

79
649

78
558

73
391

71
389

75
548

79
653

78
563

73
391



The "amplified" values seems to be totaly indifferent to the source voltage or screwing the pot. And that makes absolutly no sense to me.

I would be very glad for any advice or tip how to solve this problem, or other way how to simply measure low amps with arduino. ยจ

Thank you.

Additional info: The source is a sollar cell and i am trying to make a apparatus to measure its IV characteristics so in the end there will be additional potentiometer in the circuit.
14
Displays / Re: MCUFRIEND_kbv Library for ...
Last post by alberto_rc - Today at 08:01 pm

Are you using a Uno?
Have you  got the BMP in the correct directory?
Have you got the correct name?

Which example are you using?
It looks like there is an example called  showBMP_kbv_as7.ino

Code: [Select]

#include <SPI.h>          // f.k. for Arduino-1.5.2

//#define USE_SDFAT

#include <SD.h>
#include <Adafruit_GFX.h> // Hardware-specific library
#include <MCUFRIEND_kbv.h>
MCUFRIEND_kbv tft;
#define SD_CS 10

File root;
char namebuf[32] = "/";      //for files in root directory

I am always wary of SdFat.h because there are so many hacked versions.
SD.h will always work with Uno hardware SPI.

David.
[/quote]

It's work.

I don't know that namebuff mean directory. I just insert my picture file name before.
It's now working. The picture is shows up. I also use the SD.h library.

Thanks
-alberto
15
Displays / Re: Hexadecimal Display Driver
Last post by CrossRoads - Today at 08:00 pm
"I know using a 7447 is always a better idea"
I'd disagree. First, it's obsolete.  TPIC6C595 or TPIC6B595 is better, same as 74HC595 shift register but with open drain high current outputs.   Just add a 10-bye font lookup array in software. And you can daisy chain a bunch of them.
Code: [Select]

byte fontArray[] = {
0b00111111, // 0 DP-g-f-e-d-c-b-a. 1 = segment on
0b00000110, // 1
//etc
};

    a
f       b
   g
e       c
   d      DP or colon if used
Code: [Select]

shiftOut (dataPin, clockPin, MSBFIRST, fontArray[numberToDisplay]);
or for faster updates
SPI.transfer (fontArray[numberToDisplay]);


Then you don't need a shift register in front of the 7447, and they run cooler too.
Here's a board I offer with 12 TPIC6B595 designed to drive up to 12 digits of 7-seven segment displays made with LED strips for the segments.
http://www.crossroadsfencing.com/BobuinoRev17/

A variation drives the digital Pace Clock sold here http://www.kiefer.com/
16
Software / Re: sketch per controllo RGB, ...
Last post by gpb01 - Today at 08:00 pm
Buonasera,
essendo il tuo primo post, nel rispetto del regolamento, ti chiedo cortesemente di presentarti QUI (spiegando bene quali conoscenze hai di elettronica e di programmazione ... possibilmente evitando di scrivere solo una riga di saluto) e di leggere con attenzione il su citato REGOLAMENTO ... Grazie.

Guglielmo
17
Sensors / Re: HIH6130 address change - s...
Last post by el_supremo - Today at 08:00 pm
There is a bug in HIH_Commander_Mode.ino which will prevent it ever changing the I2C address.
This:
Code: [Select]
    write_word(0x5b, 40.0);  // change I2C
should be
Code: [Select]
    write_word(0x5c, 40.0);  // change I2C

I have no idea why it is specifying the address as a floating point number!

Pete
18
What I mean is it work for a while and then it just stop working, sorry for constructing wrong sentence always. Filipino kid here.
19
Spot on Delta_G

I removed the Print command and hey presto

Thanks
20
Hello everyone! I am an Expert Coder, and I typed in this code, and it said Error. I looked at the Error, and I saw that there is nothing wrong with the code. Please read the Code correctly. I wish you all good luck for Completing this hard project!

-AndrewTheCoder
Pages: 1 [2] 3 4 ... 10

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy