Setting arduino UNO as a joystick - arduino

I am trying to turn my uno to joystick. I have two UNO's one of them is like in the first picture, and the other one is like in the second picture. As I see the tutoriols about turning an uno to joystick mostly they use the one that is shown in the second picture. But, my PC does not recognize the second uno. It is not in the com port or unknown devices, it just does not recognize. And as the first UNO, I uploaded CH340 driver and it is seen in the com port. But when ı try to turn it into joystick it gave me the error "Atlbusbdfu. not found" I erased the Flıp. However when ı tried to reinstall it it said to me like it is already installed please remove it. It was not seen in the files, so ı went to "add or remove programs" part. It was seen there, but when ı tried to delete it it gave the error "ıt is not detected by windows, please make sure it's name is correct" . Now I can not reinstall flip, but there is not flip in my computer. I would like to ask three questions. First one; How can ı delete and install flıp again? Second one; How can I get the second uno recognized by pc? Third question; Would it be a problem as the first uno is different then usual? Also, sorry for my english. I am not so good at it.
image
(First UNO)
image
image
600×600 81.1 KB
(Second UNO)
I would really appreciate the help
f

Related

txt file from pc to arduino

I was not able to find any examples by googling so I thought I might ask help from here.
I have a txt file of n lines. Each line contains a blueprint for arduino uno to execute needed thing, for example flash a light. In my sript I want to "load" this file to UNO and go through this file line by line executing the steps.
I only found examples for this kind of thing for SD card usage.
For example:
https://www.arduino.cc/en/Reference/FileRead
http://forum.arduino.cc/index.php?topic=95303.0
However, I don't have SD card nor can I get one at the moment. Is there a way to read this file directly from pc and save it as an array for UNO to use.
Depending on the operating system you use, you can "pipe" the file to serial port, reading it from the Arduino using Serial object. On Linux:
cat myfile > /dev/ttyUSB0
Replace USB0 if necessary.
EDIT:
For windows you might use type command. Not sure if extended COM ports (other than 1 and 2) will work.
type myfile > COM5
You can try a different approach, that is store the content of required txt file / just the values to the EEPROM of the arduino.
The size of text that can be stored is minimal.The size of EEPROM solely depends on the Arduino used for e.g Mega has 4KB of EEPROM(One of the biggest), UNO has 1KB.This can be extended too as far as I know.
You can look into eeprom examples here -
https://www.arduino.cc/en/Reference/EEPROM
Its very easy to understand, just looks fuzzy and hard in the beginning.
There are other methods like using a SD card as you mentioned since that is not an option EEPROM is next best bet
Hope it helps.

dspic33fj128mc804 and eeprom 25LC256 by SPI

I am trying to write and read from the EEPROM (25LC256) with my dsPIC 33FJ128MC804, I tried to use the examples from the website, however they used the explorer16 with the dsPIC 33FJ256MC710, so I take the code and I made the changes to used it in my dsPIC but I started to use interruptions, right now I can send data, but I am not able to read from the memory, even if I follow the steps in the datasheet of the EEPROM and using the configuration of the SPI.
Could you help me please with this little problem please?
UPDATE: I just noticed that whenever I send the code for read the STATUS register I always get zero as answer, is it normal?
source code: https://www.dropbox.com/s/wdahlmhjrilcqw6/main.c?dl=0

Arduino Ethernet failing to initialize correctly

When the code HERE(Edit: Wrong code :) is used, the Serial monitor is spammed with this:
http://pastebin.com/nsD4CALFg
I cannot find any problems with the code, and it is a long one...
EDIT2: It now spams this http://pastebin.com/BXfFFBKHz
I know what was wrong(Sort of)... There was a bug with that specific program, because I copied the exact same program into an empty one and it worked :L...

what is the third device in the picture from <unix internal>?

The picture above is from the book .
The first device is disk, the second and fifth are monitor and keyborad, the fourth is tape,but what is the third ? It is too old for me ,can anyone help me ?
It is a printer a peripheral device which needs driver.
Looks like a printer, more specifically, try searching for images of an "impact printer". They looked quite similar. Also, present laser printers designed for use in office environments also look like this, especially if they have scanners/etc also included in the same box.

PIC Prgramming - The basic flow of things

Can someone please explain to me the basic flow of how this is done.
So currently I a USB pic programmer and also a multi pic adapter. I understand that I can use this to write my program to the PIC. But Im not sure what happens before that, like how do I actually test it with LED or some input sensor etc that gives out analog data?
This is what I have now: http://www.piccircuit.com/shop/pic-programmer/26-ica01-usb-pic-programmer-set.html
So I need to connect this to to a breadboard? And if so how? Im completely lost!! This is the first time that I attempt to do this. What I have done is use my Synapse RF Engine EK2100 to build what I want.
Now what...?
I'm not entirely sure what you're trying to accomplish but what you purchased is a programmer for PIC microcontrollers. After you have written some code whether in assembly or C and compiled it to a hex file, this device will put that code onto a PIC microcontroller that you buy separately. Have you purchased a PIC device to program or do you just have the programmer and the EK2100 kit? If you provide some more detail we can point you in the right direction.
Write a basic 'flash LED' program and then wire-up the PIC to see if it works.
Hot tip - use the internal oscillator to minimise the external component count (makes things simpler). Browse around a PIC savvy site like http://digital-diy.com/ to get lots of interesting ideas and code samples.
The community there mostly use PIC Basic type languages (such as Swordfish) that will land you code that looks something like this (header/setup removed for ease of explanation):
While True
High(LED)
DelaymS(500)
Low(LED)
DelaymS(500)
Wend

Resources