Recent Posts

Pages: [1] 2 3 ... 10
1
Hi,
Last week I bought a ESP8266 module.
I wanted to program it with arduino so I connected it with an USB cable but the port doesn't show up.
I tried desinstaling and reinstaling but it still doesn't work
Can somebody help me ?

Screen : https://www.hostingpics.net/viewer.php?id=394527Capturedecran20170523a190819.png
2
"What happens when uploading via programmer?"
Program loading starts at address 0, and is allowed to go past 7E00 where the bootloaded would normally go.

"Is the boot loader still burned, or is the sketch compiled to run on it's own?"
No bootloader, sketch runs on its own. uC starts from address 0 after a reset.


"What will happen to the unused part of the memory."
Nothing is created by the compiler to get loaded there. I can't connect up a programmer here to show the verbose output from uploading to show what the IDE does.

Here is the file for a blank program,
void setup(){}
void loop(){}
with a bootloader, and without.
With:
Code: [Select]

:100000000C9434000C9446000C9446000C9446006A << code starts at 0
:100010000C9446000C9446000C9446000C94460048
:bunch of lines deleted for posting
:100190007A0080917A00816080937A0080917A0061
:1001A000806880937A001092C100C0E0D0E0209770
:0C01B000F1F30E940000FBCFF894FFCF99
:107E0000112484B714BE81FFF0D085E080938100F7 << bootloader
:107E100082E08093C00088E18093C10086E0809377
: bunch of lines deleted for posting
:107FD00088E0F5DFFFCF84E1DECF1F93182FE3DFCA
:107FE0001150E9F7F2DF1F91089580E0E8DFEE27F6
:047FF000FF270994CA
:027FFE00040479
:0400000300007E007B
:00000001FF

Code: [Select]

:100000000C9434000C9446000C9446000C9446006A << code starts at 0
:100010000C9446000C9446000C9446000C94460048
: bunch of lines deleted for posting
:100190007A0080917A00816080937A0080917A0061
:1001A000806880937A001092C100C0E0D0E0209770
:0C01B000F1F30E940000FBCFF894FFCF99
:00000001FF

No bootloader code is included.

"I would like to disable brownout detection for energy saving reasons."
How does that help?
3
Project Guidance / Re: LCD displays the wrong out...
Last post by sterretje - Today at 03:36 pm
You need to post your updated code; and please use code tags when posting code (read the sticky how to use the forum).
4
Try programming with int main (void) instead of setup/loop and do a Serial.print. You'll see that the print does not complete because the program "falls off the cliff" before the printing is finished.
Wait, I have never programmed an MCU without Arduino. What does "fall off the cliff" mean here? Does it actually progress to some old code that was still in the falsh? Why does that suddenly interrupt the the transfer from the buffer of the hardware UART?
5
Project Guidance / physical connection between AR...
Last post by mamuti - Today at 03:35 pm
Hello

I'm working on a project in which I need to read data from demo board of LTC6804 (DC1894) by an ARDUINO UNO. I have only one board and therefore, the 4 wire SPI mode is activated (all the jumpers on DC1894 are on 0 state). Regarding the code, I'm using the library that LT has provided for ARDUINO. One can find the sketch for DC1894 and relevant source files by clicking on download link in the following page:
LINDUINO
The sketch DC1894.ino can be easily compiled in IDE and uploaded into my ARDUINO UNO. When I open serial monitor, it shows all options (ADC conversion, write configuration and ...). However, when I choose options which include reading some data back from the demo board, all the returned data are 0x00 and it shows that "PEC" error has occurred. So, it seems that LTC6804-1 is not communicating with ARDUINO; I checked the SCLK, SS and also MOSI pins by oscilloscope; they are working; however, the pin MISO always stays at zero. So, I thought maybe the problem is with physical connections:
Now, I have made following connections between to boards:
GND to GND
MISO to MISO
MOSI to MOSI
SCLK to SCLK
CS to CS

The SPI socket on DC1894B has 14 pins, is there any other pin that I need connect to corresponding pin on ARDUINO? Or, do you have any idea where is wrong probably? Please help me on this because I'm very tight on time.

Thanks in advance

 
6
Thanks, just wondering...  AUS? nope - I'm in the US, although I'd like to visit someday.
7
General Discussion / learncodehard
Last post by learncode - Today at 03:32 pm
this is coding site please visit our sit and learncode
8
Storage / CardInfo with microSD card usi...
Last post by Xylord - Today at 03:30 pm
Hello all!
This is a straightforward one, at least I thought it was.
The hardware:

- Arduino Mega 2560 https://www.arduino.cc/en/main/arduinoBoardMega2560
- Arduino Wireless SD Shield https://www.arduino.cc/en/Main/ArduinoWirelessShield
- Adafruit microSD https://www.adafruit.com/product/102

The microSD has been formatted by right clicking it in my laptop, selecting "Format", unchecking the "Quick Format" option, selecting the FAT32 format and letting it do its thing.

The shield is properly inserted, all the pins are connected at least (I've tested other projects that made use of those pins) and the 6 pins in the middle are connected as well.

I am presently trying to use this example sketch:
Code: [Select]
// include the SD library:
#include <SPI.h>
#include <SD.h>

// set up variables using the SD utility library functions:
Sd2Card card;
SdVolume volume;
SdFile root;

// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
// MKRZero SD: SDCARD_SS_PIN
const int chipSelect = 4;

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }


  Serial.print("\nInitializing SD card...");

  // we'll use the initialization code from the utility libraries
  // since we're just testing if the card is working!
  if (!card.init(SPI_HALF_SPEED, chipSelect)) {
    Serial.println("initialization failed. Things to check:");
    Serial.println("* is a card inserted?");
    Serial.println("* is your wiring correct?");
    Serial.println("* did you change the chipSelect pin to match your shield or module?");
    return;
  } else {
    Serial.println("Wiring is correct and a card is present.");
  }

  // print the type of card
  Serial.print("\nCard type: ");
  switch (card.type()) {
    case SD_CARD_TYPE_SD1:
      Serial.println("SD1");
      break;
    case SD_CARD_TYPE_SD2:
      Serial.println("SD2");
      break;
    case SD_CARD_TYPE_SDHC:
      Serial.println("SDHC");
      break;
    default:
      Serial.println("Unknown");
  }

  // Now we will try to open the 'volume'/'partition' - it should be FAT16 or FAT32
  if (!volume.init(card)) {
    Serial.println("Could not find FAT16/FAT32 partition.\nMake sure you've formatted the card");
    return;
  }


  // print the type and size of the first FAT-type volume
  uint32_t volumesize;
  Serial.print("\nVolume type is FAT");
  Serial.println(volume.fatType(), DEC);
  Serial.println();

  volumesize = volume.blocksPerCluster();    // clusters are collections of blocks
  volumesize *= volume.clusterCount();       // we'll have a lot of clusters
  volumesize *= 512;                            // SD card blocks are always 512 bytes
  Serial.print("Volume size (bytes): ");
  Serial.println(volumesize);
  Serial.print("Volume size (Kbytes): ");
  volumesize /= 1024;
  Serial.println(volumesize);
  Serial.print("Volume size (Mbytes): ");
  volumesize /= 1024;
  Serial.println(volumesize);


  Serial.println("\nFiles found on the card (name, date and size in bytes): ");
  root.openRoot(volume);

  // list all files in the card with date and size
  root.ls(LS_R | LS_DATE | LS_SIZE);
}


void loop(void) {

}


I've tried all the suggested options for chipSelect, as well as 53, 52, 51 and 50.

I've also tried setting the chipSelect pinMode to OUTPUT and did digitalWrite(chipSelect, LOW) or digitalWrite(chipSelect, HIGH) during my attempts.

I've found a lot of threads on this subject, but it seems like they all have different solutions and none of them use the same shield as me.

Thank you in advance for any help you can provide!
9
Audio / I need a Sound file for arduin...
Last post by duinette - Today at 03:30 pm
Hi,


I am making a little audio output with arduino but all the files I have don't work well, there is to many crackling so the file is not read well.

I have tried to change the frequence, the bits but it don't work.

If you have any file which work well with arduino i would be happy.
10
Project Guidance / Re: LCD displays the wrong out...
Last post by guyshiko - Today at 03:30 pm
thank you for all ur help, but now it changed to =-50
Pages: [1] 2 3 ... 10