Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Crash debugging - RAM dump on: September 15, 2014, 06:11:33 am

After my program crash, the led on the arduino UNO board start blinking rapidly. Is there a way to add code which will run after the crash and will print the RAM content? This will allow me to trace the function calls for debugging.

Thx for the help
2  Using Arduino / Project Guidance / Re: Watch dog strange behaviour on: December 25, 2013, 10:01:49 am
It is not the watchdog as I thought from the start because when I remove the watch dog issue I still got the problem. Only after I have restart my laptop it was solved.

Please not that before I have restarted the laptop I have checked it on direct power conenction and on other laptop which showed clearly that the issue is not with the arduino / software.

I am 99% sure this is the case but I will wait a little just to see if I encounter issue again or not.

Currenlty I don't see this issue.

3  Using Arduino / Project Guidance / Re: Watch dog strange behaviour on: December 24, 2013, 03:35:04 am
The issue wasn't related to the RTOS or any other code. I have commentd almost everything and the problem still occured. Only after restarting my laptop issue solved.

I understand that the DTR is the one which is connected to the arduino reset. I suspect that somehow the laptop / driver toggled the DTR if the conenction wasn't active.

And again, it wasn't related to the arduino code.
4  Using Arduino / Project Guidance / Re: Watch dog strange behaviour on: December 23, 2013, 03:52:30 pm
After more testing and removing part of the codes I found out it is not the watch dog, but I still cannot find the cause.

My testing shows:

1. After I burn the program no issues. I can reset the board with the reset button and it will always start good.
2,. If after I burn the program I disconnect the cable and conenct it again, the problem starts. Reset the board with the reset button will not help.
3. Using power from power adapter - no issues.
4. Using second laptop I have - all good.

I suspect now that this is an issue with the laptop driver. I will later try to restart the laptop to see if it helps.

Will update in case others will have similar issues.
5  Using Arduino / Project Guidance / Re: Watch dog strange behaviour on: December 23, 2013, 01:49:53 am
There are messages sent with the Serial object.

I also tried to conenct the board to power supply and not to my laptop and it also works fine. I suspect that the serial connection has some affect on the watchdog timer.

One thing that I also noticed is that I have a timer (I am using RTOS) which is used to blink alive led every sec. When the board is conencted to the laptop but the terminal is disconencted I see that every one or two blinks, there is fast blink which I don't see when the terminal is conncted.

Very strange  ....
6  Using Arduino / Project Guidance / Watch dog strange behaviour on: December 22, 2013, 03:08:50 pm

I am not sure that this is the right place to ask but I will try ...

I have a strange behaviour of the watch dog timer (Using Arduino NANO). I am using the watch dog timer to initiate periodic tasks. It works excellent without issues only when the serial is connected (only when I conenct to the device with any serial terminal). When I disconnect the teminal the flow is working as expected but the timining is different.

E.g., if I set the watch dog timer to wake up every 4 sec, I run the tasks every 4 counts, which means every 16 sec. When I disconnect the serial connection, it seems to run every 4sec which is very strange.

I assume it difficult to answer my question but what I would like to know if someone has an idea why watch dog timer is affected by serial conenction.

Thx for the help
7  Topics / Home Automation and Networked Objects / Virtual Wire & RC Switch on: December 08, 2013, 10:55:16 am

Do you know if it is possible to have virtual wire working with RC switch on the same device using the same RF TX / RX?

Thx for the help
8  Using Arduino / Sensors / Re: analogRead floating pin on: December 07, 2013, 03:19:25 pm
I read about the entropy altough I am not sure that for me it is that important.

I've tried to touch the pin but there wasn't any change.

I assume that if th epin is floating I must get some noise, right? Can it be that there is some PU / PD that prevents this noise?

9  Using Arduino / Sensors / analogRead floating pin on: December 07, 2013, 11:54:08 am

I am trying to use analogRead with floating pin to generate somehow random numners. The issue is that I always read 0. I am using the arduino Nano board.

The basic thing I am doing is reading the value to the seed function:

val = analogRead(0)

Am I missing something?

10  Using Arduino / Project Guidance / Re: Wake up arduino from RF message on: November 09, 2013, 11:29:31 am
I still haven't figure how much time battery will last. Do you have any good suggestion for RF 433 which draws less than 4mA?

11  Using Arduino / Project Guidance / Wake up arduino from RF message on: November 08, 2013, 04:22:31 pm

I have arduino and a cheap RF receiver (something like

I want to be able to put arduino in sleep mode and to wake up when RF message starting to arrive (for power saving purposes).

Can it be done?

12  Development / Other Software Development / Re: ArdOS and virtualwire on: November 06, 2013, 04:24:59 am

I also tried freeRTOS but with no success, but then I think i found the issue.

I think it is becuase I have built the Arduino library (AT6) as C++ library but the wiring functions are C files. When I have moved the wiring functions to a seperate library it started to work.

Becuase of all the changes and tries I have done I am not sure if this is the actual reason but now I think it is working with freeRTOS. I will find a time to try it with other OS (Ardos).

Does it make any sense to you?

13  Development / Other Software Development / Re: ArdOS and virtualwire on: November 05, 2013, 07:10:01 am

Thx for your reply

I tried to use Picoos and fond similar issue with VirtualWire. In Picoos, when just adding the library of VirualWire to the project, not even calling any function, the OS didn't work properly. What I found was that when I comment digitalRead & digitalWrite it is working OK.

So now I suspect that somehow the arduino core library cause the issue. I use AT6. I also used the core.a generated by the arduino IDE and it didn't solve the issue.

Any idea why the core library cause this issue?


Serial works fine.
14  Development / Other Software Development / ArdOS and virtualwire on: November 01, 2013, 02:39:21 pm

Has anyone succeded to use ArdOS with VirtualWire? I am trying to use both but it seems that the timer interrupt in the virtual wire lib cause some troubles.

I will appricaite any help

15  Using Arduino / General Electronics / Re: Smallest power supply unit on: October 06, 2012, 05:29:06 am
I thought of using batteries but I want to place all parts in the light switch box so replacing batteries will not be convenient. This is why I thought using the USB charger or other small power supply.
Pages: [1] 2