Recent Posts

Pages: [1] 2 3 ... 10
Arduino Due / Re: Due appears as COM6 port b...
Last post by DrVoid - Today at 06:01 am
Push the Erase button on board and than try again.
My due has same problem with yours but when i start pushing erase button before upload.
upload sucess.
Storage / SD Initialization Failure
Last post by khilbert - Today at 06:00 am
So I have an Arduino Uno, and I purchased the Adafruit MicroSD card breakout board and a 2GB Micro SD card from Adafruit as well.

I have all of the pins correctly inserted as detailed by the Adafruit website, and I put the MicroSD card in the Breakout Board, and everything should be working, but I keep getting Initialization Failure when I try to run the CardInfo program under File - Examples - SD - CardInfo.  I changed the chipSelect from 4 to 10 because I'm using Pin 10 for CS (again, as Adafruit's website said I should do).

Also, I formatted my MicroSD card with the formatter here:

I'm really not sure what to do.  I literally just received the SD card and breakout board in the mail, so I doubt they're not working.
Hardware / Re: Conectar Arduino a Interne...
Last post by Kike_GL - Today at 05:52 am
1. LPWAN osea SigFox, LoRa o Neul.
Hardware / Re: DS3234
Last post by surbyte - Today at 05:51 am
Usas esta librería

Code: [Select]
#include <SparkFunDS3234RTC.h>

Hay dos comandos que fijan la hora uno es

Code: [Select]
Fija la hora y fecha a los valores de la compilacion. de modo que si desconectas el arduino  lo vuelves a energizar va a arrancar con siempre con la hora de la compilacion y su fecha
Solución comentarlo  o sea // rtc.autoTime();

Code: [Select]
rtc.setTime(16, 32, 7, 2, 31, 10, 16);  // Uncomment to manually set time

este es la 2da opción. Fija la hora a lo indicado dentro de los ()
La comentas y no tendrá nada para hacerlo.

y finalmente en esta libreria

Code: [Select]
  // Update time/date values, so we can set alarms

Que actualiza el sistema con la hora del reloj.

Asi que solo comentando las dos anteriores te aseguras que funcione bien.
Neopixel, or WS2812B,
Spartkfun carries them as thru hole LEDs also if you don't want to deal with SMDs.
or a flatter top,
No no no  :o

This will lead to something much bigger as she grows up!   :)

There are things called neopixels that might be better to use.

Got it but i'm not there yet with her.  Just need to focus on this one and take it step by step.  Shes 4.  She wants crayons and world peace.
Project Guidance / Re: ESP8266 boot mode problem?
Last post by elveax - Today at 05:45 am
Update: I tried flashing just a simple blink program to a fresh ESP-12F and powered it with a 9v battery via my voltage regulator and nothing else (not on a PCB, just on my dining room table with a couple of jumpers) and same thing.  Just a dim, solid, onboard LED.  WTH?

That rules out that my PCB design or sketch are the problem.  I don't think its my power flow either, as I've successfully used these voltage regulators and batteries successfully in the past.  Every combination of pulling GPIO2, 15, RST, etc. up and down doesn't seem to have any effect.  Is there something I don't know about ESP-12F's, compared to other models?

The following description on INT0 interrupt may be helpful to have some idea on the working principles of the Interrupt Structure of ATmega328P MCU of Arduino UNO.


A: Low Level Description
(1)  Interrupting the MCU means telling it (forcing) to suspend what it has been doing now (the main line program = MLP); go to the side job (Interrupt Service Routine = ISR); finish the ISR and then resume the MLP.

(2)  MLP could be the job of continuous blinking of the LED-L (built-in LED of UNO). The ISR is a short duration side job, and it could be the blinking of LED2 only for 5 times.  

(3)  K1 is the device (the interrupting device) which when pressed down generates an one-shot pulse at Pin-4 (INT0) of the MCU. This is the interrupt signal; it has Low Level, Rising Edge, High Level, and Falling Edge properties; but, only Low Level or Rising Edge or Falling Edge can interrupt the MCU. This is known as Trigger Level of the external interrupt signal.

(4)  Let assume that the trigger level is Falling Edge (FE). This is done with the help of the EICRA Register by putting 10 at the ISC01 and ISC00 bits. If FE is chosen, then the internal pull-up must be enabled or an external pull-up resistor must be installed.  


The codes are:
Code: [Select]
pinMode(2, INPUT_PULLUP); //internal pull-up is connected
bitClear(EICRA, 0);  //ISC00 is Low
bitSet(EICRA, 1); //ISC01 is High

(5)  The IRQ-signal (interrupt request) arriving at the INT0-pin (Dpin-2/Pin-4/PD4) will interrupt the MCU if the SWB and SWC (software switches) switches are closed during intiliation and before putting the interrupt process into operation.  SWB switch is known as 'Local Interrupt Enable Bit' and SWC switch is known as 'Global Interrupt Enable Bit.' In Fig-1, we see that the SWB and SWC are controlled by EIMSK and SREG Registers respectively. The switches become closed when the respective bit is made HIGH. The codes are:

Code: [Select]
bitSet(EIFR, 0);  //SWB is closed
bitSet(SREG, 7); //SWC is closed

(6)  When an AL signal occurs at the INT0-pin, the MCU finishes the 'current instruction', saves the 'return address' on the stack, disables interrupt logic (opens SWC switch), and then goes to the ISR. The interrupt logic is automatically enabled when the MCU returns to MLP after finishing the ISR. The ISR is declared this way:
Code: [Select]
ISR (INT0_vect)
   //enter codes here to blink LED2 for 5 times; do not insert delay() here; it will not work


B:  High Level Description
Code: [Select]
attachInterrupt(digitalPinToInterrupt(2), ISRINT0, FALLING);
//The above instruction does all thee: FE selected, internal pull-up is connected,
//ISRIN0 (users' given name) is associated with INT0-signal (INT0-signal is at DPin-2)
//SWB is also closed
interrupts(); //SWC is closed

void ISRINT0()
    //write codes to blink LED2; delay() will not work here. If you really want to insert delay()
    //here, re-enable the interrupt by executing interrupts(); instruction just after arriving at the ISR

BTW: In Fig-1 we observe that even the SWB and SWC switches are opened, the arrival of the IRQ-signal is always recorded by the EIFR Register as INTF0 flag. This flag can interrupt the MCU later on when the SWB and SWC switches are again closed.  
Programming Questions / Re: Yet another PID question
Last post by Pomachu - Today at 05:42 am
Also, for the approach to work well, the time interval between calculations must be constant. I see nothing in the incomplete code that you posted which suggests attention to this important detail.

Why would the loop function not be constant?
Sensors / Re: 12V batteri voltage meter
Last post by Wawa - Today at 05:36 am
For better results measure the 5V of the Arduino. I get 4.977V so I use 1023/4.977

I use a MOSFET to gate the voltages on and off.

I have a delay of .09 before I take a A0 reading.

Gives me readings of .005 off my volt meter
Does it stay 4.977volt when e.g. a LED is blinking?

How. Please post a diagram.

Delays do just what they say. Nothing happens during a delay, so why use it.

So 12-15volt with a resolution of 0.005volt (3000 values) from a 10-bit A/D (1024 values).
Pages: [1] 2 3 ... 10