I have one arduino and one module wifi adafruit cc3000, I'm researching about this equipment and I want a web page to control a led(on/off).
I was researching on google and found this tutorial that helped me a lot:
http://www.openhomeautomation.net/wireless-relay-arduino-wifi/
But that works localhost and i want access this in any network i'm conected, anyone can help me or give me advices than i want' to do?
These might help, they are ways of connecting to the arduino from the web.
http://www.adafruit.com/blog/2014/03/20/homecaster-using-the-adafruit-wifi-shield-to-send-messages-from-the-web-to-arduino-cc3000-iot/
http://www.adafruit.com/blog/2014/01/13/ardustat-web-controlled-wireless-arduino-based-thermostat-featuring-adafruit-cc3000-arduino/
http://bitknitting.wordpress.com/2013/09/16/test-send-data-from-arduino-to-a-web-server/
You could also telnet into the arduino via the internet and customise this program to be a controller.
https://github.com/plotly/arduino-api/blob/master/plotly_streaming_cc3000/Adafruit_CC3000/examples/ChatServer/ChatServer.ino
Related
I just received my NodeMCU, I have installed the CP210x driver. It shows up as: /dev/tty.SLAB_USBtoUART
This is under OSX 10.11.6.
However, I cannot upload any sketch via Arduino (I have installed the ESP community libraries). I cannot even get a response using esptool, for example if I try:
esptool.py -p /dev/tty.SLAB_USBtoUART -b 9600 read_flash_status
Then I just get "Connecting..." and nothing else happens. I am wondering if it is stuck in flash mode maybe? I don't know how to check this though or how to get it out if so. Or have I just been sold a bad device? Is there any way I can tell? I have tried two USB cables but I am not also powering the board with an external power supply. Could this be the issue?
Any advice would be great, I have plenty of experience with Arduino but completely new to the ESP.
I have an Arduino in a remote location and would like to upload new code via GPRS (a SIM900 is connected to the Arduino via serial interface). I am clueless of how to accomplish this.
Can anyone point me in the right direction? Maybe even someone have accomplished this already and can share their knowledge?
I haven't done it myself, but some googling pointed to this article:
http://baldwisdom.com/bootloading/.
Questions are:
did you connect all the additionally required lines from the serial port (DTR and RTS)?
can you use these control lines?
I had came across AVR-FOTA-Bootloader v2.0. The description of the video says
Firmware Over The Air (FOTA) v2.0 Bootloader for ATmega128 and SIMCOM Sim900 GPRS using UUENCODE by Goran Jurkovi
but there is no other information.
I did it few years back with Neoway modems. Here is the bootloader . I modified this implementation of stk500 and added TCP/IP support. But unfortunately I do not have the code for remote OTA server now.
I'm trying to make a call between 2 wireless networks from my iphone using pjsua lib.
i'm calling from my iphone to an android running csipsimple.
everything worked great while both devices were on the same network. but i can't make the call when the devices are on different networks. i guess i'm having problems with the nat traversal. so i tried to find the nat type using the built in methods in pjsua - "pjsua_detect_nat_type" and the callback method "on_nat_detect" but i keep getting - "Error detecting NAT: Invalid STUN server or server not configured". than i tried setting the stun server with "stun_srv" but it still won't work. can anybody help me with this please? i'm stuck on these issue for the last couple of days and am fairly new to this library so any assistance will be appreciated...
thanks in advance
Please go through this demo would definitely help you out.
https://code.google.com/p/idoubs/
About your initial problem, you're right, you should have some translation mechanism that should be interfering in your scenario.
About psip NAT detection mechanims, please note, that, as documentation states, you should have access to a STUN server. Do you've a STUN server in your network? If so, do you have SRV resolution in order to allow pjsip to get it's address?
I have researched (and learnt quite a bit), but I have little experience in programming and only really understand basic sketches so far. I would like to use the Arduino R3 (more specifically, the usb to serial converter chip) to program a full-size hobby radio.
I have connected my radio to the Arduino appropriately (5V, Rx, Tx, Gnd) and put the Arduino into Tristate mode (apparently you have to do this..), but I seem to be lacking appropriate drivers. I basically want my Arduino R3 to function exactly like this: CP2102 . Please note that I am not being super cheap. To get something like that where I live would take at the very least a month. Some people also say that I should remove the Atmega chip. The ultimate goal is that I have a device, with drivers, on a com port and not just an "unknown device".
So, my questions are: leave the Atmega on, or remove it? and which drivers do I need?
Thanks!
EDIT: I found almost exactly what I need just after I posted. For some reason I couldn't get it to work, but maybe you could help me understand? Here's the link LINK If anyone is keen to help me out!
Just to make it clear: it has been done before, but I get the feeling people leave out things which they think are obvious, but to the not-yet-professional tinkerer like me aren't :/
Thanks so much!
It seems like the links you reference are for older Arduinos with an FTDI chip. The Arduino Uno doesn't use that. Here's a link for using the Uno
So! All of the older Arduinos (NG, Diecimila and Duemilanove) have
used an FTDI chip (the FT232RL) to convert the TTL serial from the
Arduino chip (Atmel ATmega). This allows for printable debugging,
connecting to software like PureData/Max, Processing, Python, etc.
etc. It also allows updating the firmware via the serial bootloader.
The good news about the FT232RL has royalty-free drivers and pretty
much just works. The bad news is that it can -only- act as a
USB/Serial port. It can't act like a keyboard, mouse, disk drive, MIDI
device, etc.
and
The Arduino Uno has a number of facilities for communicating with a
computer, another Arduino, or other microcontrollers. The ATmega328
provides UART TTL (5V) serial communication, which is available on
digital pins 0 (RX) and 1 (TX). An ATmega16U2 on the board channels
this serial communication over USB and appears as a virtual com port
to software on the computer. The '16U2 firmware uses the standard USB
COM drivers, and no external driver is needed. However, on Windows, a
.inf file is required. The Arduino software includes a serial monitor
which allows simple textual data to be sent to and from the Arduino
board. The RX and TX LEDs on the board will flash when data is being
transmitted via the USB-to-serial chip and USB connection to the
computer (but not for serial communication on pins 0 and 1).
Basically the LINK you provided, shows the user HACKING the Arduino. Using the USB/Serial(TTL) converter(what ever chip that is on your Arduino) to link to the Radio's Mini Din connector, in place of connecting to the Arduino's CPU.
As stated in other answer the Arduino uses a CHIP (of some flavor) to bridge the USB(Virtual Serial Port) to the Serial Port of the ATmega328 micro. These pins are available on the Shields connector 0(RX) and 1(TX). Hence you see the picture wiring those pins to the Radio's DIN connector.
Where I would expect in addition the RESET of the Arduino's CPU would be held to GND, this would force the pins into Hi. Simply with an extra wire jump the RESET pin to a GND.
It's working! Somewhere along the line the drivers for my arduino seem to have been deleted, so I reinstalled them, did what you said, and learnt something.
So to clarify for others: pretty much plug and play (as the link I posted suggests), but make sure to install the arduino drivers properly.
Thanks a lot for the help!
What would be the best way of sending a signal from an iPad to an Arduino?
I am trying to use XBee, with iPad and Arduino to send a wireless signal.
I want to make a big red virtual button on an iPad that, when pressed, turns on an LED on the Arduino.
I am a total newbie when it comes to iOS, but OK with Arduino and XBee.
So I'm not sure if I understood correctly, but in my meaning there is only one simple way to solve the problem:
Connect an XBee to a Computer and another to the Arduino. On the computer you launch a webserver, which will be accesible from the iPad over Safari. This server handles the clickes and writes to the XBee Com Port, for communication.
Here are some examples, people already made:
http://www.projectallusion.com/1/post/2009/11/iphone-controlled-solar-powered-arduino-tank.html
http://www.sparkfun.com/tutorials/152 (not with xbee, but you can implement that by yourself)
I know it's been a while but I just came across to this question and yesterday I was doing the exact same thing so I'll share the method I used and the source of it.
In order to set a LED on or off in an Arduino board from the iPad you really don't need anything more than a browser. This is of course if you have a way to connect that Arduino to the local network.
Today you have at least two options. The WiFi and the Ethernet shields. Once you have your Arduino board inside the network you can send the instructions (HIGH or LOW) to the board form the browser.
These are my two boards connected waiting to be plugged to the local network:
Of course, you'll have to code the board to process those instructions. There are many examples on how to configure network settings and state instructions:
If you have a bit of time and want to do something more elaborated you could create a simple app to graphically control the state of those LED(s).
Inside you'll basically do the same thing, create the URL command and send it to the Arduino IP but it'd look much nicer. If you integrate later more controls the sky in the limit.
My experiment is a combination of what I learned from this nice tutorial and some tips I've read here and there.
I hope it becomes also useful to someone else.
Cheers,
Since you need to use a network connection from the iPad, a possibly simpler way to do this would be to use a WiFi module on the Arduino to poll a web script, and have the iPad write a state (button press) to that web script.
There's a handy WiFi module called the RN-XV that's designed like an XBee. I wrote up two tutorials on it:
http://log.liminastudio.com/programming/getting-started-with-the-rn-xv-wifi-module-node-js
http://log.liminastudio.com/itp/physical-computing/using-the-rn-xv-wifi-module-as-a-remote-switch