avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB error in arduino bootloading - arduino-uno

I am using arduino uno to bootload atmega-328p . I have done all connections properly as shown in arduino.cc site . But then a warning give arduino ide that
board avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB
I have changed my ide's preferrence.txt as
build.board = AVR_ATMEGA328BB
After that also the error is showing . I am using arduino ide on windows.
What wrong I am doing ?

Actually there is problem with connection of IC base . Loose connection of atmega328p pins made bootloader to not recognize the board . Thus giving the error . Proper ic connection solved the problem.

Related

Can the NXP PN532 work on UART at a 38400 baud rate?

I am trying to integrate an RFID1356MIFARE, which uses NXP PN532, with an ESP32-EVB using their UART capabilities.
The NXP docs states that the PN532 is able to communicate on High Speed UART.
I am trying to use 38400 because that's the baud rate fixed by the reader that I'm using.
I've found a modified Adafruit PN532 library that added HSU support. This library states that HSU uses 115200 baud rate.
Now, I've modified PN532_HSU.cpp, where we can find:
void PN532_HSU::begin()
{
_serial->begin(115200);
}
into
void PN532_HSU::begin()
{
_serial->begin(38400, SERIAL_8N1, 36, 4);
}
Unfortunately, I haven't been able to establish communication between the reader and the ESP using this method.
I am able to get a readable output using normal Serial.read(), so UART communication works, but that's not how you read MIFARE cards.
I don't know what the problem is.
What do you think ?
[EDIT]
I went through the documentation and here is what i suggest: If you have a USB to serial device use it to directly connect reader module to computer else connect it directly using mini USB port in module. the follow following steps:
Put device in UART/ USB CDC mode depending on how you connected device to computer. Exact method to do this is provided in operation section of documentation
Use picoterm / screen or other serial terminal (if you are using Linux) or just use Arduino serial monitor with correct baud rate to connect device.(115200 for USB and 38400 for UART)
Type in commands listed in COMMAND SET FOR CDC AND UART MODE section in documentation to check if module is working or not.
Place some cards over reader to check what response does module sends when card is detected.
Use this information to develop your own library for reader.
It will not work with regular PN532 libraries. Instead you'll need to use regular Serial read and write to communicate.
[Original]
PN532 datasheet says host interface is selected by pulling up/down I0, I1 pins of device. For HSU both pins must be pulled down. This is implemented in hardware so you need to verify if the mode you want to use is set.
Looking into the link you posted for module, it says that it uses another micro-controller on board to extend communication capabilities, so maybe you need to use driver for that specific controller firmware? The link seems to have document explaining how to setup different communication system in Document section, please have a look there and check if it works.
Link: https://www.olimex.com/wiki/MOD-RFID1356MIFARE

ttyAMA0 serial port RaspberryPI3

I am not able to use ttyAMA0 serial port on the RaspberryPi3 from a cpp app when I build the image by using Yocto. If I use the original Raspbian image, on the same hw, then it works perfectly.
I followed the indication on meta-raspberrypi docs
docs
by adding
ENABLE_UART = '1'
and SERIAL_CONSOLE = '115200 tty1' ( to redirect to another tty the console )
and MACHINE_FEATURES += " pi3-disable-bt"
but nevertheless the RaspberryPi is not moving the UART_TX0 pin when I try sending some data to the uart. this instead works correctly with the original Raspbian image.
What should I add or modify ? it is not clear nor there is other documentation about this.
Usually the Raspberry Pi 3 has two serial ports, one via UART and the other on the GPIO pins. The first one has it's name commonly known as "ttyAMA0" the second one uses the name.
Try one of them if doesn't work you will have to look the name that it's being recognised and use it as your device name.
ls /dev/serial/by-id/
My device is a ARPI600 and when I connect it I setup my serial communication like this
serial.Serial("/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0", baudrate=115200, timeout=1.0)

Send data sensor from arduino to esp8266 who send it to the cloud using SSL

I have an arduino Uno which collect data from sensor, i want to send this data to the cloud using wifi esp8266 who support SSL using the library WifiClientSecure, is there an alternative to send data from arduino to the esp card and esp8266 read this data and send it after that to the cloud, i'm able to work with mqtt but i want to know if there is a way to have a directly connection between the arduino uno and esp8266 without having a third part, any help will be gratefull.
According to my research, the ESP8266 AT Command API does not support SSL. This means you will need to use the Arduino (as an FTDI converter) to program the ESP8266 with custom firmware. This will enable you to use WiFiClientSecure and pubsubclient.
To use the Arduino as an FTDI:
load a sketch that does not use Serial, such as the "Blink" example
connect the Arduino's TX pin to the ESP8266 RX pin
connect the Arduino's RX pin to the ESP8266 TX pin
Now you need to setup Arduino IDE so it can program an ESP8266
In Arduino IDE -> File -> Preferences, paste this into the Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json (just copy the link as it is instead of clicking)
go to Tools -> Boards -> Boards Manager. Find "esp8266" in the list of boards and click "Install"
Set your board to "Generic ESP8266 Module" in Tools -> Boards
Arduino IDE is ready! But before you caan program an ESP8266 with it you need to connect a reset button and a program button to the ESP8266.
connect a push-button between GND and the ESP8266 GPIO_0 pin
connect a push-button between GND and the ESP8266 RESET pin
add a 10K-ohm pull-up resistor between 3.3V and ESP8266 pin (defaults the reset pin to HIGH)
When you are ready to upload a sketch to the ESP8266, use those buttons like this:
press both buttons
release RESET button
release GPIO_0 button
This puts the ESP8266 in program mode! You should now be able to click the "Upload" button in Arduino IDE. I would suggest using one of the provided ESP826a6 example sketches (like this one) to test everything out.
Here's an overview of the project:
. Arduino Uno sketch: read sensor data, send via Serial to ESP8266
. ESP8266 sketch: connect to WiFi network, receive sensor data from Serial, send via WiFiClientSecure to the cloud.
I will leave the actual code of these two programs up to you, but if you get stuck just leave a comment. Hope this helps!

SIM800 Sim application toolkit on rpi

I m trying to access sim toolkit SIM800 with modem on RPI . When i tried to access AT +STKMENU=00, it is throwing operation not allowed error , Can some one suggests me how to access sim toolkit from RPI/linux.
DID u try this first "AT+STKMENU=?" And "AT+STKMENU?"
i also tried but some fails due to not ON STKPCI. please try first steps & tell. Thanx

RN-42 Drops connection on SPP profile

I am using RN42 on embedded device connected to UART. Baudrate is 115200 ( I tried lowering it but didnt help. )
I am using default settings.
Every time when I pair a device with PC I can open a serial port to remote device, but as soon as i Close the port, and I try to open it again It will fail with "semaphore timeout error".
If I want to restore connection I have to delete device from PC and add it again, then it will work for 1st time and fail again.
Does anyone have similar issues or maybe solution to this? If you need more info ask, I realy dont know what info to supply in this case.
On PC side I have USB Bluetooth device and integrated one. The both behave the same.
On embedded side RN42 is connected to UART of AM3517.
I hope you can help me.
Regards,
Luka
I found the issue. It was PIN3 (GPIO6) connected high. This way after 1 connection module switched to auto master and was unable to connect to other masters.

Resources