Back to Blog
Which nucleo stm32 model to buy6/23/2023 ![]() ![]() If you are unfamiliar with the STM32 world, i absolutely recommend that you get and read through Carmine Noviello's excellent book "Mastering STM32", available in leanpub. It matters less which Nucleo because at this stage computing power is not an issue any Nucleo will beat any 8 bit Arduino hands down in performance. The former if you want an easy start, the latter if you want to learn embedded system design and implementation in depth. Either go for Arduino (8 bit Atmel AVR although other Arduino options exist) or Nucleo (32 bit STM32 ARM-Cortex). F429, cheap but still quite powerful: LCD, MEMS gyroscope, and target USB. So, which horn of the dilemma is the right one? I'd take both: if your budget allows, I'd go for a Nucleo 144 (not F303, F412 or F446, lacking Ethernet) and a disco: e.g. Nucleo 144, though more expensive, strike a nice compromise: you get Ethernet and USB, and there's still plenty of available IOs.They are very easy to integrate in any project (personal examples: CEC to USB HID, PSU control and measurements, etc.) Nucleo 32 and 64 are the exact opposite: cheap bare-bone boards, not much more than a break-out plus an ST-Link.This is a problem especially with the F746 and F469 Disco, where not much more than the Arduino connector is available.But they lack free IOs, taken up by LCDs etc. The latest Discovery boards are very nice, if you need or want to experiment with their on-board peripherals.romain reicher Date : Revision : v0.1 */ #include "mbed.h" #include "SpwfInterface.h" #include "TCPSocket.h" /* Wifi Acces Point Settings */ #define AP_SSID "YOUR_WIFI_SSID" #define AP_PASSWORD "YOUR_WIFI_PASSWORD" #define UBIDOTS_SERVER "" #define UBIDOTS_PORT 80 #define UBIDOTS_TOKEN "YOUR_UBIDOTS_TOKEN" #define UBIDOTS_DEVICE "YOUR_UBIDOTS_LABEL_DEVICE" /* Communication ressources */ SpwfSAInterface spwf(D8, D2, false) Serial pc(USBTX, USBRX) /* Digital ressources */ DigitalOut myLed(LED1) DigitalIn myButton(USER_BUTTON) /* Analog ressources */ AnalogIn adc_vbat(ADC_VBAT) // VBAT / 3 internal to ADC channel AnalogIn adc_temp(ADC_TEMP) // Internal Temp Sensor to ADC Channel /* Global variables */ float temp = adc_temp.read() * 100 // Converted in C float batt = adc_vbat.Partial, even? Quite an impressive list! I also have a a number of Nucleos (32 and 64, F042, 072, 411) and Discos (F4, F429, F746) plus the odd TI MSP432s. STM32L476 VBAT/3 internal channel in mV - STM32L476 Internal Temperature Sensor in C - The status of onboard User Button (blue) on NucleoL476RG Use NucleoL476RG with X-Nucleo-IDW01M1v2 wifi shield Important note: Some IDW01M1 wifi shield had resistor R21 mounted which interfere with STLink/SWD programmer. This example sends 3 variables to Ubidots. ![]() You should have received a copy of the GNU General Public License along with this program. See the GNU General Public License for more details. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * Copyright (C) 2017 romain reicher This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ![]()
0 Comments
Read More
Leave a Reply. |