Questions tagged [emulation]

Emulation is the process of using software to "fake" how a piece of hardware will act in certain circuits with different firmware on the chips.

16 questions
245
votes
13 answers

Can I program for Arduino without having a real board?

I would like to start the development of some basic Arduino projects but I don't own an Arduino board yet. Is there a way I can write my code and emulate/test it using a desktop computer so after my board arrives I just have to upload and run my…
totymedli
  • 2,929
  • 3
  • 20
  • 22
5
votes
2 answers

How do I debug on-chip with Arduino?

Though an emulator is quite useful for debugging code that has no side effects, most real-world applications include some circuitry besides the Arduino. If a microcontroller on an Arduino had a JTAG interface, it would be pretty straight-forward,…
polkovnikov.ph
  • 169
  • 1
  • 7
4
votes
3 answers

How compile an Arduino program for a desktop PC

I have an arduino program that only does serial communications with a little bit of math, and I am writing another one to communicate with it on a second arduino. For testing purposes I was hoping I could run the serial only program on my desktop. …
bob mcgrath
  • 55
  • 2
  • 4
3
votes
2 answers

Is there an Arduino Simulator or Emulator that runs on OS X?

Is there an Arduino Simulator or Emulator or cross-compiler to native Mac executable that runs directly under Mac OS X, and does NOT require a Windows or Linux VM or an active internet connection for running in the cloud? There are previous…
hotpaw2
  • 287
  • 4
  • 11
3
votes
3 answers

Is it possible to use extra AVR Flash memory as non-volatile EEPROM-like Flash memory storage?

In STM32 microcontrollers it is possible to use a technique that ST calls IAP, or In-Application Programming, in order to write to the Flash memory from your running application. They even have a nice Application Note (ex: AN2594) to describe a…
Gabriel Staples
  • 1,385
  • 11
  • 27
2
votes
1 answer

Emulating Arduino Uno with QEMU: interrupts do not work

So I wrote this code for Arduino Uno: // file qemu.ino void setup() { Serial.begin(9600); } void loop() { Serial.println(millis()); } And then compiled and uploaded it to the real microcontoller. Everything works as it should, printing…
lch361
  • 21
  • 1
2
votes
1 answer

Emulate RFID Tag

I just got my RFID-RC522 Reader and was wondering one thing. Can i Use an RFID Reader to emulate an RFID Tag, so that if i have another reader it will detect the other one as a card and transfer data. It should be detected as a Tag like a midfare…
2
votes
2 answers

Arduino analog joystick

I'm planning to make a handbrake for my racing simulator (Assetto Corsa) and I wanted to know how can I transform arduino into a joystick so the game can read the analog input? Thanks in advance, and sorry for my bad english.
ItsaMeTuni
  • 123
  • 3
1
vote
0 answers

DigiKeyboard BIOS Compatibility

I am using a custom version of the DigiKeyboard library, to use a Digispark as a keyboard in the BIOS. It works on most computers, but HP 730 Thin clients dont recognize it as a keyboard. Below is the custom version. Any suggestions on how to fix…
1
vote
1 answer

Can at least one Arduino emulate a USB hub?

What I'd like to do is have some kind of compact (and preferably inexpensive) Arduino-compatible device emulate a USB hub, and simulates plugging in a USB keyboard, pressing a key, then simulates unplugging the keyboard. The goal here being a…
Raceimaztion
  • 151
  • 1
  • 5
1
vote
0 answers

How to test Arduino behaviour on Windows?

Hello fellow Arduino enthusiasts, I created an Arduino project for a Mega2560 board in Microsoft Visual Studio. Before loading the code on the board I want to test it on my Windows desktop computer. I'd like to automatically provide input (e.g. with…
0
votes
0 answers

Arduino emulator to create virtual 3d printer farm

I'm building a system to monitor several 3d printers, but I just have 1 printer. I'm thinking if there is any opensource tool to launch several virtual Arduino based boards running with Marlin firmware to accomplish my task. I'm planning to use…
efirvida
  • 111
  • 2
0
votes
2 answers

Using an Arduino as an input device

I had an idea to create a control panel using an arduino and some buttons. How would I go about making the arduino emulate an input device so that when I press a button connected to the arduino, it would cause the same effect as when a keyboard key…
Toromak
  • 3
  • 1
  • 2
0
votes
2 answers

is there any real arduino emulators (so I can upload and run machine code on it)

I play with Arduino Micro. I write my programs in directly in machine code, in binary editors (yes, I know that there are more easy ways to program an Arduino, I do it for fun and learning). Often my programs work, but if not, then I would like to…
user983447
  • 121
  • 1
  • 5
0
votes
1 answer

How do I activate emulation in the Coddeblocks Arduino IDE

I stumbled upon this question here, so I tried the Codeblocks alternative. After opening an Arduino Project, and leaving all options to default, I ran the Arduino version of the Hello World. A popup opened that requests a serial port to move on.…
MikhailTal
  • 51
  • 4
1
2