Arduino and Nano33 Ble Sense
Arduino and Nano33 Ble Sense
Bekkeng 12.01.2021
What is Arduino:
• Arduino is an open-source electronics platform based on easy-
to-use hardware and software
Why Arduino in the course?
• ARM Cortex M4
• Inertial measurement unit (IMU)
– 3-axis accelerometer
– 3-axis rate gyroscope
• 3-axis magnetometer
BLE
• Bluetooth low energy (BLE)
USB
• + many other sensors
PC with
LabVIEW
Small size, low cost, powerful and many sensors!
https://www.arduino.cc/en/Guide/NANO33BLESense
If you get an error or unexpected
behaviour (for instance not able to
Nano 33 BLE sense upload sketch), try to press the reset
switch
Figure from Arduino Nano 33 BLE Sense Review - What's New and How to Get Started? (circuitdigest.com)
ARM® Cortex®-M
The criteria of selecting a
microcontroller device are mostly
heavily dependent on the cost and
peripherals available.
Suggested reading:
White paper “ARM® Cortex®-M for
Beginners”, particularly section 1 to
2.4.
ARM® Cortex®-M
• Almost everything can be programmed in high-level language like C
– easy to use
• The consistency of the architecture make it easier to start using a new
Cortex-M processor once you have experience with one of them.
Optional:
See the White paper “ARM®
Cortex®-M for Beginners”
https://www.st.com/en/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus.html
Arduino code example
• Take a value in between 0 and 1023 (e.g. 10 bit input from an
ADC) and map it with in the 0 to 100 range:
IMU
Arduino libraries
• https://www.arduino.cc/en/Guide/Libraries#toc3
In Arduino IDE:
For IMU (Lab 3–5)
For lab5
Arduino libraries
IMU an magnetometer library for the
Nano 33 BLE sense board
• https://www.arduino.cc/en/Reference/ArduinoLSM9DS1
• Sometimes decimal
symbol “.” is required!
• https://rootsaid.com/arduino-ble-example/
• https://www.okdo.com/project/get-started-
with-arduino-nano-33-sense/
And Nano 33 setup …
BLE connection to phones and
computers