Comments (8)
According to https://learn.adafruit.com/adafruit-feather-32u4-basic-proto?view=all#logic-pins-2-9 it looks like you can use pin 0 and 1 with Serial1.
Then just use Serial1.begin()
and remove the pinPeripheral
calls.
from embedded-uart-sps.
I changed all the references of Serial2 to Serial1. But I am getting the following error in sps30_example_usage.c :
/tmp/ccTGaACo.ltrans0.ltrans.o: In function main': /home/dinesh/Arduino/libraries/sps30-uart/sps30_example_usage.c:61: undefined reference to
sleep'
/home/dinesh/Arduino/libraries/sps30-uart/sps30_example_usage.c:119: undefined reference to `sleep'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Adafruit Feather 32u4.
from embedded-uart-sps.
Arduino just compiles all files it finds which is a bit suboptimal in this case. You'll have to remove sps30_example_usage.c
, I'm assuming you're using some kind of .ino
file. You can use the example as a base for what functions to call on the generic sps driver..
I don't know which is the correct serial interface to use for which pins on your board since this is very platform specific. For general Arduino programming support you'll be much better off asking in an Arduino forum. But once you get it working, we'd be happy to include your findings on how to get the example working for your board. I'll leave the issue open for a while.
from embedded-uart-sps.
Thanks, I kinda figured that out. I removed the sps30_example_usage.c file. I then added
#define NULL 0 in sps30.c .
The program is now compiling without errors. There is a problem with interfacing it to the hardware. I will update any progress.
from embedded-uart-sps.
@nit1995 did you get it working? If so, would you provide us with a sample or post a pull request?
from embedded-uart-sps.
@nit1995 Do you have any updates?
from embedded-uart-sps.
@rnestler Nope. I stopped working on the project. Instead of Feater, we integrated it with another microcontroller.
from embedded-uart-sps.
@nit1995 I'll close this for now. Feel free to re-open or open a new issue if you encounter any problems 🙂
from embedded-uart-sps.
Related Issues (20)
- sps30_stop_measurement issuing the wrong command HOT 3
- Adafruit Feather 32u4 Bluefruit LE: Unable to receive data HOT 6
- Distinguish between different SENSIRION_SHDLC_ERR_MISSING_STOP errors HOT 4
- Voltage via UART? HOT 3
- Only getting NaN readings via UART on Raspberry Pi 3 HOT 4
- SPS30 communication on uart HOT 1
- help wanted for SPS30 with UART communication HOT 2
- Atmel SAM4S implementation HOT 2
- Handle SHDLC Execution Error Codes and Device Error Flag properly
- uart-sps HOT 8
- Arduino example wrong #define HOT 2
- Support for Nano 33 BLE Sense HOT 4
- 40: internal function argument out of range HOT 2
- Output format is float values only — integer format not supported HOT 2
- First measurement read in sps30_example_usage.c always fails HOT 1
- Sps30 HOT 1
- UART HAL Recieve HOT 2
- STM32 UART EXAMPLE SPS30 HOT 3
- sensor probing failed HOT 4
- SPS30 with STM32F401 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedded-uart-sps.