TI sensor tag clone - bluetooth-lowenergy

I'm planning to design a custom sensor tag using a CC2540 ibeacon module and IMU unit. Can I burn TI's sensor tag firmware directly to the ibeacon module without doing changes to the source code, or do I have to configure I2C communication part in the source code? If so please let me know how to do it.
Regards.
ibeacon module I'm using
IMU sensor I'm planning to intergrate

Do you have any more information about the iBeacon module you're using. It's hard to tell if it's set up so you can plug n play sensors. The information in the product description is not very helpful.
It looks like the iBeacon module you're using is relying on the System-on-Chip solution that the CC2540 provides. If this is true in order to modify the source you'll need the IAR 8051 Compiler which requires purchasing a license at around $3,000 US dollars.
It's hard to say for certain without more information about that module. Do you have a spec sheet for that module?

You should use a Light Blue Bean instead of that module. It has iBeacon mode options available from the start. https://punchthrough.com/bean/ibeacon-setup/
It is programmable with the Arduino IDE, with over the air updates. So you won't have to deconstruct your project to reprogram it, and you won't have to buy the IAR compiler either. The Beans even have the I2C communication busses built in, as well as an onboard accelerometer! https://punchthrough.com/bean/arduino-users-guide/

Related

I found there a function "fopen",but how to use it?

I am amazing that arduino due has file operators.But where is my file?
I don't know what's the meaning of a file on a system without file system.
You need the 3V compatible shield which has SD card slot. You can also implement the host USB stack and connect usb storage devices. You can also create your file system in the uC FLASH. The last two require vast knowledge of the hardware as I do not think that you will be able to find the arduino libraries for it.

I want to use "spi.h" in raspberrypi (spi.h is header file of arduino)

I would like to use the Arduino sensor in raspberry pi.
Since the sample file for the sensor is dedicated to the Arduino, the example header file is also dedicated to Arduino.
The example code uses the spi.h file. Can I download the header file and use it in Raspberry Pi?
That wouldn't make sense for various reasons and it wouldn't work for various reasons.
SPI is a serial interface. You don't need Arudino code to communicate via SPI on Raspberry PI. There are many examples on how to do that on Raspberry PI.
The sensor doesn't need an arduino. All it needs is power and someone to talk to.
The fact that you ask this question shows that you should invest time into learning C/C++ and get some basic knowledge about microcontrollers and serial interfaces.
If you're lost in an unknown jungle it won't help you to bring a map from another unknown jungle... So what do you have to do? Learn about jungles in general and some day you'll be able to survive in most of them.

how OTA programming for arduino using gsm can be done?

I am doing a project on OTA programming of Arduino at remote place so I need GSM along with Arduino, so how can we do OTA with gsm for Arduino?
I assume you're asking how you can remotely control an Arduino with your phone, right?
I suggest using Bluetooth for this, as it is build into every phone nowadays. You'll still have to buy a module to allow the Arduio to communicate via bluetooth. An example of such a module is the HTC-06, wich can be bought online for less then $10 and for wich there is an exellent tutorial over at instructables.
The phone side of the story depends on what kind of device you're using, this is the official Android documentation, this seems to be the Apple documentation.
Alternatively, if you don't want to write everyting yourself, you can use an app like Tinkernut does is one of his videos.

Best way to transfer data from Arduino to Server

I am new to Arduino and I would like to do a project that sends data, remotely. So, the Arduino would not be connected to Wifi/Bluetooth, Ethernet, etc. Would using a GSM shield be the best way to transfer data? I do not need to make phone calls or send SMS (unless sending SMS would be a better, more reliable, option) just data to a server, who's app I would create. If this is the best option, what else would I need to make this happen? For example, on top of the GSM shield (I am looking at something cheap like this: https://www.amazon.com/Geeetech-SIMCOM-Quad-band-Development-Arduino/dp/B00A8DDYB6/ref=sr_1_2?ie=UTF8&qid=1467651878&sr=8-2&keywords=Arduino+GSM+Shield) what other charges would I need to pay? I.E. would I also need to get another phone plan? Would I have to pay for a gateway service that would receive the cell phone data and then send it to my server?
Thanks your any thoughts on this
Wifi, ethernet or GSM, it depends on what you want to use, and what you have.
With all three you can send data to a server.
There is a bench of Arduino shields. All shields from Arduino come with a library to handle communication.
Other shields from other vendors exist and they provide their libraries too.
For Ethernet you can check the arduino shield https://www.arduino.cc/en/Main/ArduinoBoardEthernet.
For Wifi there are plenty. You have first the arduino shield. You can also take a look at the CC3000. Or the famous ESP8266. For all three you can find libraries.
For GSM, Arduino has a shield and a library. Arduino uses the Quectel M10 GSM moduel. You can find lots of examples in the arduino website and all over the net (https://www.arduino.cc/en/Guide/ArduinoGSMShield).
There exist other shields like the one you mentioned. Libraries does exist for those "other" shields however they are not as maintained as the arduino one.
You need to be careful though, you'll find over Amazon (and most likely on Alibaba) some GSM modules like SIM900A that are way cheaper, those are only dual band and will work only on certain contries.
There is another cheap GSM Module called the A6. It was made by espressif the company behid the ESP8266. It's relatively new and no library exist for it at the time. You can write you own functions to use it, but that would be some extra work.
In all cases, to use a GSM module you'll need a sim card with it's phone plan and all.
Another thing to consider is how to power these shields. They use more power than an Arduino can generate (A GSM modules datasheet recommend to use a power supply that can deliver up to 2A). If you power them straight from the Arduino, you may encounter some strange behaviour.
So the ideal way is to have for them an external power supply with the required amps and have a commun ground with the Arduino.

Is it possible to modify the TI Sensor Tag firmware to make communication between Sensor Tags possible?

I have several TI Sensor Tag modules. The Sensor Tag can only communicate with Smarphones/computers out of the box. I would like to also make communication between Sensor Tags possible, so that i can exchange Sensor data between Sensor Tags. Making this possible has significant advantages in my use case.
I have searched for the possibilities to modify the Sensor Tag to add this functionality. It turns out that it's possible to make changes in the firmware. But how extensive can this changes be? Has anyone tried to actually change the firmare to make it possible to communicate between Sensor Tags? Or is this impossible?
If this is impossible, are there other alternative to Sensor Tag which are programmable to communicate with each other?
Unfortunately, SensorTag is a Slave device and cannot be changed to a Master. Thus, it only accepts incoming connections and has not any capability to establish a connection to an another remote device. You can invest in a CC2541 BLE Mini Development Kit from Texas Instruments:
http://www.ti.com/tool/cc2541dk-mini
Since the firmwire of the KeyFob can be changed to either Master or Slave, it will be possible to communicate various KeyFobs with each other. The kit only includes an accelerometer service among all the services in SensorTag, so I don't know how useful it will be in your case.

Resources