5 years, 9 months ago.

Online Simulator

Hi all, The Mbed online simulator shows few example programs , that can be implemented without the hardware, How can we try out some other examples on the simulator to run the code ! What has to be done, any simple procedure to check out the code running without the actual hardware ? Thanks sbw

Hi SB,

Are you referring to this Mbed Simulator?: https://labs.mbed.com/simulator Or the online compiler?: https://os.mbed.com/compiler/

- Jenny, team Mbed

posted by Jenny Plunkett 23 Jul 2018

Hi Jenny, I am referring to this Mbed Simulator. Thanks

posted by Sahana Waikar 24 Jul 2018

What examples are you trying to run without the hardware?

- Jenny, team Mbed

posted by Jenny Plunkett 24 Jul 2018

I want to run an accelerator or magnetometer demo on the simulator taking data from a file,

posted by Sahana Waikar 24 Jul 2018

1 Answer

5 years, 9 months ago.

Great to see you want to use the simulator. If you run the simulator locally you can also load new components. This is done by adding some small JavaScript pieces for the UI, and the event handling, and then modifying the driver to talk to this new component instead of I2C or SPI bus. Examples can be found in the simulator docs under *Adding new peripherals*.

If you are happy with your new component, I'm happy to merge it to the simulator core, so others can use it in the online simulator too.