Photon is a Wi-Fi connected development module manufactured by Particle. It's based on STM32 ARM Cortex M3 microcontroller and a Cypress Wi-Fi chip.
Questions tagged [particle-photon]
21 questions
2
votes
1 answer
Undefined reference, when using fft routine from cmsis library
I am trying to use fft functions in my application code for particle-photon. I have managed to link my library to the cmsis prebuilt-library for Cortex M3. However when I call the actual fft function:
arm_rfft_q31( &rfftStruct, buffer, buffer); //…

Som
- 83
- 2
- 9
2
votes
1 answer
Callbacks in C++ for an Arduino project
I am working on a Particle project and coming from JS so I'm challenged by callbacks in C++. I am trying to refactor my Firebase code into a reusable class and for this I need callbacks:
void setup() {
firebase = new Firebase;
…

Guy
- 12,488
- 16
- 79
- 119
2
votes
1 answer
Can't Flash Code to Particle Photon
I have a Particle Photon which I'm trying to setup. I've tried flashing code both from the web IDE, and locally and it always times out. The device is connecting as it can be seen in these pictures:
The web IDE does not give me much information. It…

Tom Piaggio
- 650
- 8
- 27
1
vote
0 answers
Create a trigger in Google script that can call a function in an photon script to reset a variable
I am trying to create a trigger in my Google script that will call a function in another script, resetting a value. I am using a particle photon that is logging events/hour. The script just counts. The Google script is using a time driven trigger…

Bryan Marshall
- 11
- 2
0
votes
0 answers
TCP WiFi python-arduino communication problem
I try to steer a drone with a joytick from pc over WiFi. On board I have an Aruino like board called Particle Photon. I want to send 3 floats (pitch, roll, throttle) via TCP and I contocted this sort of thing:
On the PC - python - client side of…

graboonie
- 21
- 2
0
votes
1 answer
Do I need a checksum when sending bytes over a socket from Python to Particle Photon?
I am trying to write python server that communicates with a Particle Photon micro-controller. The micro-controller should send updates when the status has changed, and also accept commands from the server to run a calibration or other actions.
There…

avgJoe
- 832
- 7
- 24
0
votes
0 answers
2D Arrays Incorrect Values Problems (Particle Photon)
I’m having problems understanding how to get elements from multidimensional array in C++. The code runs on my particle photon, and it doesn’t seem like I have any compiling errors, but when I check my printed value, I’m expecting to get the return…

hahman
- 21
- 1
- 1
- 2
0
votes
1 answer
Dart and the Particle Cloud
I'm building a flutter application that talks to a Particle Photon device through the Particle Cloud and I'm having trouble making a correctly formatted request to the Particle cloud.
When I try to send my request with the particle Access Token…

johnwargo
- 601
- 2
- 7
- 22
0
votes
1 answer
Axios Proxy Configuration causing Bad Request
I am trying to send a request to the particle cloud from a NodeJS application.
I am using Axios to make the PUT request. The application sends the request through a proxy server which is configured as well.
// axios proxy - not…

Adnan Arif Sait
- 111
- 7
0
votes
0 answers
Separating a MQ4 gas Sensor particle photon code into a .h and .cpp files
I am new here. I was working with particle Photon and MQ4 I2C gas sensor.
I have a normal I2C code for this sensor
#include
#include
// ADC121C_MQ4 I2C address is 0x50(80)
#define Addr 0x50
int raw_adc =…

Rajbir
- 1
- 6
0
votes
1 answer
Sending data from database to IoT device at certain intervals
What is the best (and simplest) way to regularly send data from a database to an IoT device at a certain interval?
In this case I have the data in Google Cloud Datastore, and want to send it to Particle Photons (possibly via Particle Cloud, but not…

Ingrid
- 516
- 6
- 18
0
votes
1 answer
How to get access token for Particle photon in Local cloud mode
I followed this tutorial to setup spark-server to use with Particle Photon, locally. After setting everything up, as instructed, I managed to read from the core and the server console displayed this message:
Your server IP address is:…

Roshan Upreti
- 1,782
- 3
- 21
- 34
0
votes
1 answer
Particle Photon API: Getting costumer token works on Postman but not with axios
I'm developing a react native application that combines a Photon Particle.
By following the documentation of a Two legged auth; before configure a device I need to get a claim code.
curl -X POST \
https://api.particle.io/oauth/token \
-H…

Jacobo
- 1,259
- 2
- 19
- 43
0
votes
1 answer
HX711 and weight cell, throws large negative value
I have successfully installed 3 weight cells to Particle Photon, using HX711. The fourth weight cell shows large negative values e.g.-69798 when a certain amount of weight is added. The weight cell should be able to measure up to 10kg, as do the…

Lennart
- 217
- 1
- 3
- 11
0
votes
1 answer
"Arduino" undefined using HX711 library with Particle Photon
I'm trying to make an IoT scale using HX711 technical with a cell and a particle photon.
When flashing the code to Photon I receive an error in the library:
In file included from weightsensor.ino:3:0:
HX711.h:4:5: warning: "ARDUINO" is not defined…

Lennart
- 217
- 1
- 3
- 11