Recent Posts

Pages: [1] 2 3 ... 10
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 :
"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.
Code: [Select]

:100000000C9434000C9446000C9446000C9446006A << code starts at 0
:bunch of lines deleted for posting
:107E0000112484B714BE81FFF0D085E080938100F7 << bootloader
: bunch of lines deleted for posting

Code: [Select]

:100000000C9434000C9446000C9446000C9446006A << code starts at 0
: bunch of lines deleted for posting

No bootloader code is included.

"I would like to disable brownout detection for energy saving reasons."
How does that help?
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).
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?
Project Guidance / physical connection between AR...
Last post by mamuti - Today at 03:35 pm

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:
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:
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

Thanks, just wondering...  AUS? nope - I'm in the US, although I'd like to visit someday.
General Discussion / learncodehard
Last post by learncode - Today at 03:32 pm
this is coding site please visit our sit and learncode
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
- Arduino Wireless SD Shield
- Adafruit microSD

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
const int chipSelect = 4;

void setup() {
  // Open serial communications and wait for port to open:
  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?");
  } 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:
    case SD_CARD_TYPE_SD2:

  // 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");

  // 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);

  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.print("Volume size (Kbytes): ");
  volumesize /= 1024;
  Serial.print("Volume size (Mbytes): ");
  volumesize /= 1024;

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

  // list all files in the card with date and size | 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!
Audio / I need a Sound file for arduin...
Last post by duinette - Today at 03:30 pm

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.
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