Post topics, source code that relate to the Arduino Platform

User avatar
By Dir
#6880 I have got a problem with hardware serial (dbg) port. I try to use sketch without connection to PC. So serial DBG not available at all… And nothing work. :(
I try to check DBG serial availability via If (!dbg) {…}, but it's was useless. After removing DBG from sketch at all (comments), everything was OK.
But i don't like idea removing DBG every time for standalone testing.
Any ideas?
User avatar
By maptor
#6955
Dir wrote:Any ideas?


A colleague of mine has challenged me to shrink my project so that it might be embedded in a standard wall electrical box, which probably means I'm going to have to give up on being able to connect a debugger anyway. So your predicament is one I've been thinking about recently.

What pins are connected to things? A quick fix might be just to use the attached devices / components as visual indicators for each bit working... For example, set pin 2 high if something was successful, otherwise have it flick between high and low.
User avatar
By Dir
#7100 I am going mad :). Everything working ok, when hardware serial is connected to PC. PING is OK, commands OK.
But, after PC disconnection nothing is working. :( Sometimes it's work sometimes not. Mostly NOT.
I try to connect ESP8266 to Arduino TX RX and got the same result. Nothing works.
I don't understand what happened.