Questions tagged [mbed]

mbed is an operating system and hardware abstraction layer for microcontrollers, developed by ARM. A large number of development boards are supported.

Filter by
Sorted by
Tagged with
0
votes
0answers
140 views

mbed Alternative to FreeRTOS's vTaskDelayUntil()

FreeRTOS's vTaskDelayUntil() function causes a thread/task to unblock at an absolute time, therefore ensuring that threads are "awakened" in consistent time intervals. Does the mbed platform offer ...
3
votes
1answer
433 views

PN532 not responding using SPI when issuing antenna-related command

I've bought a PN532 v1.3 breakout board, to which I communicate in SPI. I can ask it its firmware number, to which it answers D5 03 32 01 06 07 (PN532 V1.6), which ...
3
votes
3answers
37k views

SIM900 Error on AT Command AT+SAPBR=1,1

I intend to send some information through GET method to a php page using the SIM900 module. I tried the following sequence of commands with success. ...
0
votes
1answer
631 views

STM32F7 programming problems

I am trying to program an STM32F7 series MCU on a custom PCB (migrating over from a nucleo dev board) but I am having trouble connecting to the MCU. Using STM32CubeProgrammer (the new programming ...
0
votes
1answer
253 views

How do Free-RTOS and mbed OS handle ethernet?

Do Free-RTOS and mbed OS poll for incoming data to be received (or use interrupts?)? If so, is there a risk that data to be received while the processor is handling another task (e.g. running a ...
0
votes
1answer
186 views

Is mbed RTOS suitable for commercial motion control solutions

Is the mbed RTOS suitable for commercial motion control applications? Is it advisable to separate the actual motion controller from the network handler, etc (i.e. motion controller in separate MCU)? ...
-1
votes
1answer
61 views

Choosing a networking protocol [closed]

I need several mbeds to communicate with a host PC, which will issue commands to individual mbeds. What would be a suitable networking protocol to achieve this? Bear in mind, an internet connection is ...
3
votes
3answers
481 views

DAC behaviour on reset / startup LPC1768

I am programming a mbed LPC1768 for a constant current discharger. I plan to use the DAC output on the LPC1768 for setting the current in my discharge circuit. edit: The trouble i am having is ...
1
vote
1answer
495 views

Configure Serial with registers on STM32l073RZ

I'm trying to configure the Serial of my STM32L073RZ with registers to send datas on the PA_9 pin. Currently I have this script ...
2
votes
2answers
381 views

Measure High Dc Voltages 0-150V using a STM32F446RE MCU

Does anyone have any suggestion on how to build a circuit that can convert high Dc voltages from 0-150 V to lower voltages so that I can use my MCU to read them and display them on my 16x2 LCD?. I ...
-3
votes
1answer
277 views

Trying to find documentation on UNV-SIM7100C-EVB MINI-V1.11

As the title states, I have the UNV-SIM7100C-EVB MINI-V1.11 connected to my Nucleo-F401re board and am trying to get GPS working. Can anyone help? EDIT: I'm looking for the one bought from here: ...
0
votes
2answers
883 views

24v Emergency Stop Input

What's a good way to read a 24v emergency stop signal with an mbed? The 24v signal is connected to an E-stop contactor which disconnects power to a motor when the 24v is interrupted (i.e. when e-stop ...
0
votes
2answers
84 views

Two sensors to one ADC pin

I'm working on a project using the MBED 1768, where I would like to connect two different externally powered sensors to one ADC pin on the microcontroller. Since they are externally powered, I need a ...
1
vote
1answer
208 views

mbed Socket Thread

I need to establish an ethernet connection between a host and mbed, where the host can send commands to the mbed (e.g. move forward, move backwards, stop, etc). As there is no telling when these ...
-1
votes
1answer
179 views

Mbed LPC1768 Too Slow for Virtual Methods [closed]

I've written an OOP program which calculates the position of an object following a Trapezoidal motion trajectory - accelerate up to max speed, coast until decel point, decelerate to target position. ...
0
votes
1answer
2k views

I2C Communication between Arduino Uno and mbed

I have an Arduino Uno and mbed sharing the same USB power supply/ground. When connecting the two to allow I2C, I would have assumed I'd need to attach the Arduino's SDA pin (PC4) to the mbeds SDA pin,...
3
votes
3answers
3k views

Should I use MBED of ARM or native platform of microcontroller suppliers? [closed]

I got a STM32F429I-DISC1 development board from STMicoelectronics and I know MBED support it. So if I want to learn about ARM and develop a commercial product in the future, should I use MBED ...
3
votes
3answers
7k views

Get internal temperature or voltage STM32L0

I'm trying to obtain the internal voltage and temperature of my STM32L073RZ with the mbed librairy (Intialize and read an internal channel with ADC). Currently I didn't know how to do that and all the ...
3
votes
2answers
678 views

Increment value and display in C

as my primary thing with electronics is hardware, I am having some difficulties learning programming. Unfortunately, my college where I study offers no such course so for my project this year I ...
1
vote
0answers
221 views

Implementing nrf51822 timer example mbed

I am using the PCA10001 eval board and I have been able to get things up and running using the mbed platform but now I am implementing a timer based interrupt for that I was using a ticker. But ...
0
votes
1answer
1k views

Change internal voltage reference on an STM32L0

I'm using a Nucleo board with an STM32L073RZ. With an "AnalogIn" object on PA_0, I measure the voltage of a TMP36 (temperature sensor), but the accuracy is not great at low temperature. I want to ...
2
votes
2answers
1k views

Can I use mbed for STM32F103(C8T6)?

I have some experience with Arduino, but for one of the devices I want to use something with more power (RAM/CPU power). I already found out that some STM32F4 or STM32F7 models really with what I ...
3
votes
0answers
318 views

Wait make the STM32L073RZ freeze in stopmode

With my STM32 I'm trying to configure a deepSleep mode and use RTC to generate interruption (actually each 30 seconds). When my STM start, this one configure the RTC and directly go in Stop mode. ...
1
vote
2answers
804 views

Periodic waking up from deep sleep

what are the main used ways of how to handle deep sleep of some microcontroller (atmega or a cortex m0/m0+) with waking up periodically? Right now, I'm building a Sigfox GPS tracker that should send ...
0
votes
2answers
368 views

I2C Connection Mbed

I2C Comms I'm trying to connect an I2C 16x2 display (PCF8574T) to a nucleo-L476RG Connections Code i'm trying to run Output of printf RUN 0x0 ACK 0x1 ACK 0x2 ACK 0x3 ACK 0x4 ACK 0x5 ACK 0x6 ACK ...
0
votes
0answers
100 views

STM32L073RZ freeze because of an InterruptIn

I have a problem, I use an InterruptIn in a class to generate interruption when a button is pressed. In this class I just have constructor, destructor and callback for the rise and the fall. When I ...
3
votes
1answer
1k views

How to obtain exactly the same state after deepsleep() mdbed function on a STM32L073RZ?

I try to configure my STM32 to obtain the lowest power consumption. For that I'm using deepsleep() function from mbed librairies. Before that I disable GPIO with this function ...
1
vote
0answers
174 views

Replacing SD card by using EEPROM

I am using the mbed platform and to be specific, NUCLEO L073RZ. To log data, I am using SDFileSystem.cpp that is officially supported by mbed (you can find the link ...
4
votes
1answer
454 views

Debugging mbed os 5

I took a look at the mbed OS 5 and the corresponding mbed cli I created first programs and programmed them via the binary drag and drop to the flash disk provided by the programmer (Using the GCC_ARM ...
1
vote
2answers
714 views

using mbed with gps

I am trying to program an mbed micro controller to work with a GlobalSat EM 406 GPS receiver and have got it outputting long and lat to a host computer using the information on: https://mbed.org/...
4
votes
2answers
1k views

How to correctly configure deepsleep for STM32L0xx

I'm trying to configure my Nucleo Board with a STM32L073RZ in deepsleep mode to get the lowest power consumption. To do that I use the mbed librairies with the deepsleep() function (This function use ...
1
vote
1answer
302 views

mbed LPC1768 with optocoupler for 5 V output

I am generating a PWM at 20kHz to drive a motor. The signal goes into a motor controller which range is from 0 to 5 volts. Since the PWM output is 3.2 volts I need to amplify it. For that I am using ...
0
votes
1answer
1k views

what kind of OS is present inside 'mbed'? [closed]

mbed seems to be a good place to start a new project on ARM. And they are saying that there is an OS inside. Is that real time (RTOS) ? is that capable of multi tasking and inter-task communication ? ...
1
vote
1answer
208 views

When would it become necessary to use an OS for an ARM MCU [duplicate]

I take it an ARM MCU can be run without an OS - at which point might it become necessary to install one? Can the mbed SDK run without the mbed-os or any other mbed for that matter?
4
votes
2answers
1k views

MCP 23018/23S18 for LED and Switch control

I'm working on a project that involves about 200 LEDs and about 120 Switches. I'd like to use several MCP23S18 DIP chips across 2-3 buses to control everything. I'm a CS guy and just want to make sure ...
1
vote
1answer
3k views

Unable to send data to Thingspeak using ESP8266 and STM32 Nucleo

I am using ARM's mbed compiler to program my STM32 Nucleo. I am also using an ESP8266 as my WiFi module. My connections are as such: Rx of the ESP8266 is connected to D8 on the Nucleo. Tx of the ...
1
vote
1answer
1k views

PIR sensor not working

I am new to electronics and microcontrollers. I am using an LPC1768 and a hc sr501 PIR sensor to create a simple motion detector. I have connected the pins of the PIR sensor to the breadboard and the ...
0
votes
1answer
420 views

mdot Analog in: how to connect Grove temperature sensor?

I am starting with multitech mdot product. I am confused about how can I use the mdot pin PB_1 (linked to A0 in UDK) to read my Grove temperature sensor value. Is it enough to simply connect it to ...
0
votes
2answers
1k views

LSM303DLHC outputs frozen

I've was trying all afternoon yesterday to get some data out of my LSM303DLHC using an STM32L152 Nucleo board. Finally I got all the I2C stuff down, managed to set some registers, verify their ...
1
vote
1answer
280 views

Product Development using ARM mBED OS

I have been working on 32-bit ARM cortex controllers writing the code from the grounds up. Now I am looking at ARM mBED OS, but few questions are bothering me. Sorry if it feels too trivial. I have a ...
0
votes
1answer
230 views

Using an mbed and piezo disc to determine frequency

I am attempting to determine the frequency of an instrument from its vibration using a piezo disc and an mbed LCP1768. I attempted this with a raspberry pi but couldn't get the sample frequency high ...
2
votes
1answer
561 views

How to create Simple Web Server with Mbed and W5100 Ethernet Shield

I'm trying to develop a simple web server application with Nucleo f411re and w5100 Ethernet shield. My question is why the client.is_fin_received() function always returns 0. Why doesn't my web page ...
1
vote
1answer
164 views

How to ensure your MCU can't be reverse engineered?

I am building a project around an nRF51822 chip from Nordic, using the mbed prototyping platform. I would like to ensure that the code cannot be extracted / deduced from the project after it has been ...
1
vote
1answer
65 views

Calling a routine every x miliseconds

I'm working on a motion controller using the mbed platform. The idea is to calculate the theoretical position in the move every x milliseconds and then compare it to the actual position from the ...
0
votes
1answer
949 views

FRDM K64-F GPIO Pins

I am building a small system to allow the FRDM K64-F to control some motors via a H-Bridge. My problem is I am sturggling to understand the documentation provided for the microcontroller. Can anyone ...
2
votes
2answers
6k views

Using Visual Studio as IDE for mbed developement

I am aware that is has been looked at / done in the past, but I was wondering if there is anyone who has experience / understands how I could use Visual Studio 2015 Professional to develop mbed code ...
3
votes
3answers
5k views

How to bring a digital input pin to high state?

This sounds really very easy, but I'm afraid to try it because I don't want to fry my microcontroller. I'll use an Arduino for an example, but it should be the same for all microcontrollers. Anyway,...
0
votes
2answers
938 views

Control 5V relay from mbed LPC1768

I want to connect up a relay module (wired up to control a normal desk lamp) to an mbed LPC1768 board. I have the circuit connected up successfully using an Arduino via the Arduino's 5V pin. From the ...
0
votes
1answer
252 views

Feedback Gain Loss of Transimpedance Amplifier

I have designed a single-supply (3.3V) potentiostat that initiates electrochemical reactions, converts the generated electrochemical current into a voltage via a transimpedance amplifier (op-amp used ...
0
votes
3answers
712 views

Appropriate Method of Counting counts from a Quadrature Encoder

I'm using an Mbed to drive a DC motor which will follow a trapezoidal trajectory. What is the most appropriate way to determine position from the quadrature encoder? Should I use interrupts, or is ...