Recent Posts

Pages: [1] 2 3 ... 10
1) "*" means a pointer; the address of a variable.
2) No
    I'm making an Arduino web server that displays various information, mostly power outage data, via HTTP. Then agents on smartphones call the site and parse the data. Such as a widget that will tell you if and how long the mains electric is out. (Had some water damage previously.)

    Being an unattended web server with a public dynamic IP address, it need DDNS. For this service, I use duckdns. After calling the API, I get the following error "HTTP/1.1 400 Illegal character 0x11 in state=URI in 'GET" I'm not quite sure what to make of it or where it comes from so I cannot correct the problem. I looked up the 0x11 character and it is not clear.

Example Program flow:
1. Hold button until 6 secs or yellow light.
2. Call DynamicDNS()
....2.1 Get public IP -> Fetches correct IP
....2.2 Call DDNS API to update the record. -> Error

I had to edit out api keys, domains, and public IP addresses. Any IPs included is already public knowledge.

Serial output:
valid static setup
DNS passed
Fetching Temps: pass
mode #1: reset dth11 and get rtc data
Fetching Temps: pass
mode #2
dns pass: myexternalip
<<< REQ1
>>> IP
HTTP/1.1 200 OK
Server: nginx/1.10.3
Date: Sun, 20 Aug 2017 16:57:58 GMT
Content-Type: text/plain
Content-Length: 12
Connection: close
Expires: Sun, 20 Aug 2017 16:57:57 GMT
Cache-Control: no-cache


ip1:50.[AS ABOVE IP].51

dns pass: duckdns
<<< REQ2

>>> DNS
HTTP/1.1 400 Illegal character 0x11 in state=URI in 'GET /G\x11<<<\x04 HTTP/1.0\r\nX-Rea...: text/html\r\n\r\n>>>Amzn-Trace-Id: Ro...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Date: Sun, 20 Aug 2017 16:58:16 GMT
Content-Length: 0
Connection: close
Set-Cookie: [REMOVE]5uA8; Expires=Sun, 27 Aug 2017 16:5
Sketch: (Kind of long. Takes 80% Arduino Uno memory and prog space.)

On a side note, this works with the api call:
Code: [Select]
char newIP[] = "";
But I need to fetch the current IP and then assign it to a var before passing it to the API. Also, don't worry about the unoptimized code. I haven't got it working yet so I'll do that later.

Would anyone care to share some light on the error or solution?
Hardware / Shield Motori B-Robot
Last post by PaoloP - Today at 07:22 pm
Il B-Robot è un progetto open source della JJ-Robot. (
In allegato c'è lo schema della prima versione della scheda (ESP12) con la board già pronta.
Mentre per l'altra versione (19) c'è solo lo schema.
Io vorrei riprodurre l'ultima, la 19, però senza i componenti SMD, sostituendoli tutti cone i rispettivi TH.
Secondo voi c'è abbastanza spazio?

Le dimensioni sono quelle di una shield per Arduino. Anzi.... è una shield per Arduino Leonardo.
Project Guidance / Re: Bluetooth HC-05 is not pow...
Last post by izj99 - Today at 07:21 pm
It depends on how long you want ot run it, but a pair of 18650s might be a good place to start, or 6xAAs NiMH.
I have limited space so please suggest small size but powerful batteries to run this system
Problem solved!
You did not make clear in your article that the module had to be DISCONNECTED, for the Arduino to use the serial monitor.
Now I can get on with working out how to use the module to switch lights on and off.

Any suggestios for the code would be appreciated.
Project Guidance / Re: EMIC2/I2C LCD Hardware Ser...
Last post by sterretje - Today at 07:20 pm
I think you missed step (6); comment out every reference to the listen() method.
Microcontrollers / Sunfounder Sensor Kit v2.0 for...
Last post by mainiac - Today at 07:19 pm
I recently purchased the "Sunfounder Sensor Kit v2.0 for Arduino" which was to include an Arduino Uno R3 compatible microcontroller.

It will not load sketches I load to my arduino; as a matter of fact it will not load sketches received for the Sunfounder version either.

I suspect a problem with the upload.  How do I correct it?  Bootloader???  If so, how do I do it; I selected bootloader from the menu and it, to the best of my knowledge, did not work.

I am old enough to know better than to go 3rd party.
Software / Re: collegamenti display
Last post by effebi64 - Today at 07:17 pm
se utilizzo il pin 5 e 6 per comandare dei ventilatori, dal codice sotto posso modificare le uscite ? Ad esempio inserendo 10 e 11?  

Code: [Select]
LiquidCrystal lcd(7,6,5,4,3,2);
Dr Westfw,

In the PS2Keyboard.h by Paul Stoffregel, ASCII code 8 is already user for PS2_ LEFTARROW
so thats not possible

In that Library BS and DEL have now both 127. I don't know Why..?
I want to use a separate code for BS
Hi Rob,

Thank you for the response. I have tried Dht11 DHT11; before with no luck (I am case sensitive).

Please note that revmike does not even include the instance (Dht11 DHT11). I added this in desperation.

I do notice that if I type DHT, the IDE sketch highlights it in red and if add 11 (Dht11) then it's back to black. Seems to me that Dht11 (Andy version) is not recognized(?)

My Library manager itemises Adafruits DHT11 before Dht11 (Andy's version). Maybe the IDE is selecting Adafruit DHT11 by default - before Andy's Dht11(?)

Other than that, the manufacturers claim 5%RH resolution and I tend to believe them. My 5 samples show variances of more than 40% and I do not believe these are original items - more likely rejects from Fong Kong knock-offs -  sold cheaply on the internet!

All the above is irrelevant, I'm going to throw this in and chalk it up as it is a waste of time.
Maybe I will order an A grade sample from the original manufacturers and retry!

Thank you for your time.

Pages: [1] 2 3 ... 10