I am trying to use the sparkfun CAN Bus shield https://www.sparkfun.com/products/10039
I can send data using this library
https://github.com/Seeed-Studio/CAN_BUS_Shield
but I can not read data, has anyone had the same problem and solved it?
Related
I want to program a simple Webserver with an ESP8266 but I want to connect the ESP8266 to an Arduino Mega. I want to connect a LED and a Sensor to the Arduino and control the LED and read the sensor data via the ESP8266 Webserver.
I am a beginner and dont want too complex solutions. It's just a simple school project.
For the Webpage I am sending just some HTML Code, I do not use Blynk or anything like that.
My question is how can I connect the ESP8266 to the Arduino and control it's pins?
There is a million ways to connect an ESP to an Arduino.
Without any shields or perihperals you can basically use any wired bus that does not require transceivers.
For example I2C or SPI.
With shields or peripherals you can use CAN, LIN, RS232, Ethernet, WIFI, Bluetooth, radio, optical and audio transmission... The list is endless.
You can of course read a sensor with the ESP so an Arduino Mega is not really necessary.
Is it possible for an Arduino Uno subscribe/connect to MQTT Broker (Mosquitto) without using Ethernet Shield or Wifi Shield?
Actually I have a Wifi module (ESP8266) with me, unfortunately it won't allow me to upload sketch and I keep getting error error: espcomm_upload_mem failed
When I interface Arduino Uno with ESP8266 Wifi Module, I construct like this:
And I have included Generic ESP8266 Module in board manager.
Is it possible for an Arduino Uno subscribe/connect to MQTT Broker (Mosquitto) without using Ethernet Shield or Wifi Shield?
Of course you need a network to handled a PubSubClient.h library for your MQTT Broker.
I keep getting error error: espcomm_upload_mem failed
I think you have something wrong about the wired or the code, can you post your schematic and your code into your question? so that i get why have this errors.
see this library.
First, do I need 2 Arduino Unos with ESP8266 module installed to communicate with each other?
I want to transmit ultrasonic value from 1 Arduino Uno to another. Thank you for answering my question.
There is no need of an Arduino to comunicate 2 ESP8266 modules. Maybe you can read that ultrasonic value with the ESP and send it to another or to the internet. Check this tutorial maybe will be useful.
this please.
How do you connect or create the interface from an xbee all the way to the web for it to work. This is a sample description.
web←ethernet shield←arduino←xbee --xbee→arduino→led
Can somebody please give me a sample code for this to work?
the ethernet shield doesn’t pass the ICSP pins through to the next layer hence the XBee shield has nothing to plug into.
try this:
http://home-automation-upenn.blogspot.com/2012/04/using-ethernet-shield-and-xbee-shield.html
http://www.makechronicles.com/2012/03/10/arduino-project-5-adding-a-stackable-icsp-header-to-the-arduino-ethernet-shield-micro-sdr3-version/
The Sparkfun Xbee shield works fine. It doesn't use the ICSP pins.
I'm currently using the Arduino Wifi Shield. It works fine with the Arduino Library, but I have a project in which I need to get rid of all the Arduino library, and use only the AVR-libc.
Therefore, in order to use the Wifi shield, I would like to know where there is a documentation about the protocol used on the SPI bus between the arduino and the shield, so that I do not need to use the Wifi Library.
Am I forced to look at the source code, or does any document exist?
Thanks.
The documentation for SPI will be contained in the datasheet for the MCU used in the Arduino. For AVR-based Arduinos, look in the section titled "SPI – Serial Peripheral Interface". For the Arduino Due, see the "Serial Peripheral Interface (SPI) Programmer Datasheet" section.