The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for Port in Topics


USB ports? Answered

What are all those wires in USB ports used for? P.S : If I wire 2 USB ports in series, the voltage will not go up, right?

Question by .Unknown.    |  last reply


USB Port

I posed a problem regarding my TV Tuner card for which i got a very nice solution and my problem is solved. I have Two more problems. Yesterday i got a new detachable Hard disk with a capacity of 160 GB I have partitioned into two. Say D rive and H drive. Whenever i plug in my divice one of the USB port in the computer, i get a message lke this " Hi-SPEED USB Device attached to non Hi SPEED Hub. The recommendation is The USB main Storage Device will function at reduce speed. You must add a High SPEED USB Controller to the Computer to obtain maximum performance, Kindly let me know whether it is a software problem or a new hardware has to be installed.. Further when i referred to the CD i got along with the Motherboard, it says USB ports with a speed 2.01 will support if i have SP1 and above. I have already having SP2. Kindly advice me. Secondly I am not able to open D Drive. When i attempt, I get a message saying that it is not it is not accessible. How to open this d drive How can i format the the new hard disk. I have no file or folder in the new hard disk. Regards, Bala TV

Topic by balatv44    |  last reply



Extending the port of a ported subwoofer enclosure? Answered

I'm planning to pimp out my car, i was wondering... If i design my own subwoofer enclosure, i want to extend the port, so that the enclosure is vented right inside the car (not the trunk) if i did that, would i have to re-calculate port diameter? thanks!

Question by Sandisk1duo    |  last reply


Turning one USB port to two ports

(If this is in the wrong forum, please excuse me and let me know where I could put this.) Hello all, I'm in the process of getting my electronics together for doing bikepacking and could use a hint or two on how to resolve this.  Looks like I'm going to have a number of USB powered items that I will be rolling with.  I'm wanting to roll with a small solar panel too to help keep things powered up.  What I have is; - Nexus 7 pad - Phone (not sure yet what that will be) - Cygolite (360 lumens) - Cygolite Hotshot - Various batteries, Goalzero Switch, and two of these sticks - There maybe other items I either would need in the future or I've yet to list.  So one or two other units for the future. What I'm hoping I'll be able to do is roll with charging these pieces either with my solar panel, or when I stop at either a campgrounds or stop at a eating establishment.  When I do stop at a eating establishment, I'm hoping I could get things charged up as quick as possible.  So I don't want to waste time on a low powered USB port when my item would have taken a high powered USB port.  I assume that would a port that is 5W at 2amps, yes? So what I was thinking was, I know the AC adapter for the Nexus 7 has a nice high powered USB port.  So that would be one port.  I'm thinking of buying another cause they are pretty lite and compact.  So I would have two nice ports from AC.  (Now comes the more clueless part of me!)  So if I'm using some kind of splitter and splitting these two ports, it would seem that the amps get split in half........right?  Is there a way to avoid this and get something small and compact that would offer me 4 high-powered ports? Also it looks like the best way to go when I'm on the road is charge up the batteries listed above with the solar panel.  Then harvest what ever I can by the end of the night. Thanks for reading this and I'm open to any and all comments.  If there's someone blogging about this that knows alot more than I do, please do share!

Topic by User1    |  last reply


Serial Port Prototypes

Has anyone made a serial port interface? I would like to build a rpm meter using a serial port of my laptop. The schematic should be easy but I can not find any information on it. Any ideas? Thanks, Brian

Topic by bsamc2000    |  last reply


when porting a speaker Answered

  could i use diffrent sized ports in the same box would there be an advantage to tuning freq " 6x1 3x2"

Question by andybuda    |  last reply


usb port diagram? Answered

Could someone pease give me the usb connections? i only want to know where the +5 and -5 are but you can give it all. thanks everyone!

Question by didgitalpunk    |  last reply


Serial port not found?

I tried to use my arduino today but COM3 couldn't be found. I tried it with older versions and other USB ports but it still didn't work. Anybody knows how to fix it?

Question by yonch    |  last reply


USB plug ports?

For a project I am thinking about undergoing, I need to know which lead on a male usb plug does what. Could anyone tell me please? Use the image as a guideline.

Question by A-Nony-Mus    |  last reply


a DIY optical port

I have been intrested in optical computer for a while but found them rather expensive to build so I tried to look for cheaper ways to build some key features like the gates. The basic idea is to use solar cells that power a led. For and OR-Port you use solarcells where it is enough that one of the side gets light to make the led burn. To make and AND-port, you can put a resitor in between so that it really needs the power form both channel sot make a led burn. For a NOT-port you put an invertor in, so that when it burns it gives no signal, and wheren it does not receive light it burns this because of a battery it caries. A NOT-port is almost like a led-throwie.I do hav emore but wanted to know if this would be a good place or not, or if someones intrested in hearing on how to build a full optical computer, still basic, but almost completly optical, or if it would be better to post this on the microprocessor group at the opencourseware of the MIT ?

Topic by Floris Vermeir    |  last reply


parallel port input?

Plz help me to, how can i receive signal or instruction from paralel port, how should i send current/signal to its register. what equipment should i need. actually i want to develope a system in c language to control electricity of home, doors or widows, so i need to check that if the door is open or closes. when door closed then computer should indicate me that the door is closed, and same door has opened. sir plz give me guideline. i would be very very thankfull to u. ( simply tell me how current/data/signal can be sent through parallel port, current source, equipment ets, after that i will make sensers for it my self)

Question    |  last reply


Sync audio to paralell port?

Hi all, i was wondering if i could sync any audio on the pc to the paralell port output. PLZ REPLY!

Question by sci4me    |  last reply


PIC Programmer Com Port?

Hello, yesterday, I bought a PIC16F877A Microcontroller and This programmer. I also installed PicPro USB. I am using the serial to usb cable that came with it. The programmer has a location of  Port_#0001.Hub_#0009 in device manager. Now when I open PicPro USB and set it to  port 1, It gives me an error saying: There appears to be a problem accessing the COM port. I cant seem to find whats wrong. [Edit] I think that It is connected to port 24 (hence its name: Prolific USB-to-Serial Comm Port (COM24) ) and the problem with PicPro USB is that it can only have 1 digit port numbers, how do I fix that? Thanks.

Question by Seifpic    |  last reply


Phototransistors interfacing with a serial port

So I really don't have too much experience with interfacing stuff and PCs (read: none) and I have a question. If I was to wire up about 5 phototransistors in series, all with a laser aimed at all of them, with the anode hooked up to TxD, and the cathode hooked up to RxD, and I had a program sending 500 bits to it per second, and checking for response.. will it basically be able to detect if one of the lasers are broken? Thanks!

Topic by cvxdes  


Broken Ports or something else..

I recently purchased a 16 channel light-o-rama starter kit and bought another addon box off of facebook market, anyway once the one I got online got it here I set everything up and tested it before setting it up outside and everything worked great. So I unplugged the CAT 5 cable on the first controller and second controller and set everything up outside. Once doing so I plugged everything back up and then I realized my daisychain was not working and my computer was picking up only 1 controller, I soon found out that the 2 ports were loose and so I looked at the pins and they seem fine on both, Do you have any ideas what could be going on? The led's on both controllers are steady green which is good but the ports don't seem to be working anymore which is odd. If you can help that would be awesome, Thanks!

Question by MatthewD253  


additional usb ports on a laptop

Is there any way to connect additional usb ports to a laptop motherboard without a usb hub? say if you hook a usb port up to existing usb ports? help would be appriciated :D thanx in advance

Question by The Rusted Workman    |  last reply


A usb port on a cd player ?

I just thought of this the other day, is there a way to connect a usb port to a  portable cd player?

Question by pcsheep    |  last reply


Paralell port batch file?

Ok, i need to make a quick .bat file that will control some of the pins in my paralell port. PLEASE LET ME KNOW ASAP!!! Also, i really appreciate some examples! THANKZ!

Question by sci4me    |  last reply


8 bit port in verilog ?

Hello members I want to make port for microcontroller in verilog code I want to write verilog code for 8 bit port module port (data_in,data_out ) input[7:0] data_in; output[7:0]data_out; wire [7:0]data_out; endmodule I think its not enough tell me what I do to make port in verilog I did google but I did not  find success        

Question by vead  


Bluetooth speaker with Usb port

Hi, I need some help here..iI have a small 2.1 bluetooth amplifier and I would like to add on it a usb port inorder to plug my usb mp3...is it possible?

Topic by VassilisT    |  last reply


Network, open port searching!

Lets say i want to test the security of my computer/internet connection, i want to see/know/test what ports are open, how would i do this? i'm looking for a program or website that does this for me Thanks!!!

Topic by Sandisk1duo    |  last reply


how to open port 6112

Now that i have my computer up n running i lost the ability to host. some guy on the game told me to open port 6112. how would i go about doin that? (some random comic)

Topic by ich bin ein pyro    |  last reply


Port forwarding, I think?

Hi, I've been playing with this: http://www.panu.it/ardupower/. It works fine when my iPhone is connected to the wifi network broadcast by the router to which the arduino (arduino ethernet shield) is connected. Is there a way of making it work across the internet, rather than just the local network? I imagine it has something to do with port forwarding, but I don't know much about it. Thanks in advance. AlexHalford.

Question by alexhalford    |  last reply


Attiny 2313 & Serial Port

Is it possible, using just an Attiny 2313, to exchange data with a computer via serial -- or do I need one of those RS232 chips?Theoretically, I think I can, using the digital IOs, dispite its lack of efficiency, but there may be some problem with that...Sending is the main part that I'm not quite confident about ;-)

Topic by zachninme    |  last reply


Make a USB port wireless?

Hay all. I want to make a simple USB webcam to a wireless one. I heard about wireless USB adapters, but I can't find them on my local stores. So I want to make one. Is that possible?

Question by netbus    |  last reply


.HEX file to USB port? Answered

Lets say I have a .HEX file that looks something like this; :100000000EC01DC01CC01BC01AC019C018C017C02C :1000100016C015C014C013C012C011C010C01124E6 :100020001FBECFE5D2E0DEBFCDBF10E0A0E6B0E05E :1000300001C01D92A136B107E1F702D0C6C0E0CFE2 :1000400080E090E0ACD081708093600004B600FE48 :100050000AC081E084BF60916000682760936000FF :1000600080E090E0A4D0B89AB99ABA9ABB9ABC9AA8 :1000700061E042E034E028E090E18091600081306E :1000800009F046C058B3592758BB59E979E9E1E06E :1000900051507040E040E1F7000058B3592758BB79 :1000A00058B3522758BB59E979E9E1E05150704003 :1000B000E040E1F7000058B3522758BB58B353272C :1000C00058BB59E979E9E1E051507040E040E1F76F :1000D000000058B3532758BB58B3542758BB59E9AD :1000E00079E9E1E051507040E040E1F7000058B399 :1000F000542758BB58B3582758BB59E979E9E1E070 :1001000051507040E040E1F7000058B3852745C0EA :1001100088B3862788BB59E979E981E0515070405E :100120008040E1F7000088B3862788BB88B3842726 :1001300088BBE9E959E971E0E15050407040E1F7CE :10014000000088B3842788BB88B3832788BB89E9EC :10015000E9E951E08150E0405040E1F7000088B308 :10016000832788BB88B3822788BB79E989E9E1E0E6 :1001700071508040E040E1F7000088B3822788BBDF :1001800088B3892788BB59E979E981E051507040EB :100190008040E1F7000088B3892788BB6ECFE199E2 :1001A000FECF9FBB8EBBE09A99278DB30895262F73 :1001B000E199FECF1CBA9FBB8EBB2DBB0FB6F89446 :0E01C000E29AE19A0FBE01960895F894FFCFDF :00000001FF And I need to send that to a USB port.  What is the best way to do this?  I have an little app that will let me send data to my USB port of choosing, but I have to type this thing out by hand, 2 characters at a time, hit enter, rinse and repeat, and then after its all entered, click send data.  That worked fine for sending a few bytes to test some hardware to verify data sent back form the device was correct and that it was receiving the data correctly, but that won't work here, for obvious reasons.  Is there some sort of free software I can download to shove .HEX files through a USB port?  I am sure there are, but I can't find any, Google is not being kind to me today.

Question by Electric Spectre1    |  last reply


Male and Female ports/adapters

I just realized why computer or plumbing parts are called male and female. The female one is the one you stick something into right? The male one is the one you stick into something. I'm just saying who ever named them must have a weird mind. I realized this when one of my friends made a joke, so please don't say I am perverted.

Topic by starwing123    |  last reply


usb

..guys, how could i add usb port to my old ibm thinkpad and anyone here can teach me how to convert a serial port to a usb port in a laptop. can i make that adapter at home? ..pls. help guys ..any instructables?, thanks

Topic by mij    |  last reply


using serial port switch on and of An LED

Hi friends i need to using serial port switch on and of An LED. and also i want to know about how db9 connector is sending and receiving the bits or bytes. I am Electrical & Electronics Engineering Student.... I need Some Tutorial To know about the Serial port.....

Topic by uvaraj6    |  last reply


are these pins for parallel port on my pc's motherboard?? Answered

Take a look at this image there is written PARALLEL and my computer lack prallel ports at the back where it should be with others

Question by Atul009    |  last reply



I cant seem to find my board on serial port on arduino?

I am using an arduino mega2560, earlier this year I have programmed the board to blink and it worked, but then after I start  trying more sketches now, the board no longer shows on the serial port, both the power led and pin 13 led work(i programmed it before and it works) now I've tried it on several computers and my laptop but it still doesn't work please help

Question by JennyL10    |  last reply



Why are my usb ports broken? Answered

I stripped a usb extender and used it for small projects in the past, when I first tried this it broken my back usb ports, two of them (using only one). So I did it again sometime after and it broke the data inputs of the usb ports. So I tried once more but with it on my usb hub and it broke the last back one. So now I am stuck with two usb ports in the front. I just want to know if I can fix this and HOW and why this is happening. Also, if there is a safe way that I can do this (other than using an arduino) please let me know. :)

Question by knexpert1700    |  last reply


How to repair the USB Port of the laptop?

Plastic Din (having grooves for pins on it) of the USB port of my laptop has come out. How can I fix it? FYI, it got stuck in the USB port (male) of the cable while pulling it out after use. I have somehow taken out the plastic din from the cable. Now I do not want to simply insert it in the USB port of the laptop since it will get stuck in the USB cable again when I use it next time. I need help to fix it properly.

Question by devender02    |  last reply


Palm serial port software suggestions?

Does anyone have any sugegstions/links for good, free software for a Palm V which can send/receive over the Palm's serial port? Logging a session of incoming data would be a major bonus. Thanks! Alex

Topic by trialex    |  last reply


female USB port power question

Im odiously new and i cant find where to attach the positive and negative . thanks in advance

Topic by rubberbanddude    |  last reply


do you have a game port?

Just wanted to see how many people on instructables have a 15 pin joystick connector on their computer

Topic by frank26080115    |  last reply


Help bulding a garage port for automover

This summer I will rebuild the front of my house.and i got the idea that my Husqvarna 220 will also have its own garage. With a real garage door.But do not know how to solve it properly, I can set the mower to run on specific time and days, so that the door opens 1min before will start and close 3 min later. All god for now. i will using a smart plug to control the power the port. now to the problemif the mover need to recharge the port will be closet, how and what can i bulid so it can detect the mover geting close to the port and opens? and close when its recharinga + is i can control the port using Home assistent to just open and close. Regard

Question by berntsson88  


How to replace usb ports on ps3?

I had a ylod ps3(past warranty) and attempted to repair it using the ylod oven instructable. It worked, however the usb ports ended up melting during the process. This would not be a problem, as I do not use them much. Unfortunately, you have to have them to sync the controller though. Does anyone know how I can replace the usb ports, or just add more. Any help would be greatly appreciated.

Question by ademaree    |  last reply


Multi-port USB power supply

My wife and I charge our tablets and phones in a central location.  There are so many wall warts and not enough outlets!  I would like to have a single USB type of power supply that can charge at least 6 devices at the same time.  Each port should be able to supply 5 volts DC at 1 amp or better.  I've purchased two different 4 port wall warts and they just don't have the juice to get the job done.  Any ideas?

Topic by Tgrshaw    |  last reply


Can usb ports share a ground?

Im converting an old printer (25 pin) switchbox into a switchbox that will be used for my monitor, speakers, keyboard, mouse and two computers. The problem is that the monitor has 15 pins, the speaker has 3 pins, and the two usb ports have 4 pins each meaning that I would need 26 pins rather that 25. I could just solder the left and right speaker pins together and make those two 1 pin, but i would rather not have to do that. My question is can two usb ports share a ground pin, meaning that it would only need 7 pins rather than 8.

Question by danielemur    |  last reply


Question about linux and serial port? Answered

The instructable https://www.instructables.com/id/Control-real-world-devices-with-your-PC/ all the code is done in VB.net and im using linux nw and i need someway to set this up in linux i don't mind if it is flash for not i just need it to work

Question by wee_man    |  last reply


Is there a MP3 Player that has a USB port on it? Answered

I have enough music to fill a portable hard drive, but I don't want to buy a Zune or an iPod. If not, does anybody else have a solution? I am hoping that I won't have to resort to 

Question by Pinaz9    |  last reply


is it possible to hack into a computer if there are no open ports? Answered

Me and a friend are arguing over this subject i say no he says yes but hes to stupid to know how so if anybody could tell me if you can or not that would be great

Question by Goomanhimer    |  last reply


Arduino code Porting Please Help? Answered

Hi please can someone port this code from lcd - to serial output to pc thanks :)  http://www.thebestcasescenario.com/forum/showthread.php?t=25092 /*Arduino Controlled Voltage Monitor Code by Will Lyon 12/5/2010 Code for project Power House on TBCS http://www.thebestcasescenario.com*/ #include //Initialize the library with the numbers of the interface pins LiquidCrystal lcd(7, 8, 9, 10, 11, 12); void setup() {   lcd.begin(16, 2);                      //Set up the LCD's number of columns and rows   lcd.print("  POWER  HOUSE");           //First line opening message   lcd.setCursor(0, 1);   lcd.print("Desktop Pwr Unit");         //Second line opening message   delay(5000);   lcd.setCursor(0, 1);                   //Clear bottom line   lcd.print("                ");   lcd.setCursor(0,0);   lcd.print(" 3v    5v   12v");          //Update top line readout } void loop() {   lcd.setCursor(0, 1);   float f = analogRead(0) * 4.88 / 1023;   // 3.3 => 9.9   lcd.print(f, 2);                        // print float with two decimals   lcd.setCursor(6, 1);   float g = analogRead(1) * 8.5 / 1023;   // 5.0 => 9.9   lcd.print(g, 2);     lcd.setCursor(11, 1);   float h = analogRead(2) * 17.25 / 1023;  // 12.0 => 25.0   lcd.print(h, 2);   delay(1000); }

Question by Daniel Deacon    |  last reply


ArduinoISP Does Not Support PORT Commands?

I was planning to make a drum machine that only requires two pins on the Arduino and so, wanted to use an AtTiny85v but it gives me errors like: 'DDRD' was not declared in this scope ArduinoBeats.cpp: In function 'void setup()': ArduinoBeats:97: error: 'DDRD' was not declared in this scope ArduinoBeats.cpp: In function 'void playKick()': ArduinoBeats:288: error: 'PORTD' was not declared in this scope ArduinoBeats:294: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playSnare()': ArduinoBeats:304: error: 'PORTD' was not declared in this scope ArduinoBeats:310: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playHat()': ArduinoBeats:320: error: 'PORTD' was not declared in this scope ArduinoBeats:326: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playCrash()': ArduinoBeats:335: error: 'PORTD' was not declared in this scope ArduinoBeats:341: error: 'PORTD' was not declared in this scope I had named the sketch ArduinoBeats so that explains all the ArduinoBeats stuff. Does anybody know how to add this command to the AtTiny library? Any help would be appreciated. Here is the code from Little Scale: /* Arduino Beats by Sebastian Tomczak 6 April 2008 */ // Working Variables byte byteA; byte byteB; int delayTime = 100; int barLength = 16; // Beats byte bar1[] = { 1, 0, 1, 0, 2, 4, 1, 2, 1, 0, 1, 0, 2, 1, 3, 0 }; byte bar2[] = { 1, 0, 1, 0, 2, 0, 1, 2, 1, 0, 1, 0, 2, 2, 2, 2 }; byte bar3[] = { 1, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 1, 1, 4, 4 }; byte bar4[] = { 1, 0, 1, 0, 2, 2, 0, 2, 2, 1, 1, 4, 1, 1, 4, 4 }; // Samples byte kick[] = { 127, 80, 42, 5, 165, 242, 241, 233, 128, 73, 48, 22, 127, 69, 55, 113, 151, 183, 209, 217, 223, 228, 233, 215, 161, 117, 91, 76, 65, 49, 37, 31, 31, 48, 83, 120, 146, 166, 183, 198, 206, 210, 209, 199, 178, 145, 111, 88, 78, 73, 69, 67, 72, 80, 88, 97, 109, 124, 137, 150, 163, 171, 174, 172, 168, 160, 144, 125, 114, 110, 108, 104, 104, 106, 109, 110, 112, 117, 124, 129, 135, 142, 145, 145, 143, 140, 137, 132, 128, 125, 122, 119, 118, 119, 119, 119, 118, 118, 120, 124, 126, 129, 132, 135, 137, 137, 135, 132, 131, 130, 129, 128, 126, 126, 124, 123, 121, 120, 120, 122, 123, 124, 126, 128, 129, 130, 130, 131, 131, 131, 130, 130, 130, 129, 129, 128, 126, 125, 125, 124, 124, 124, 124, 125, 126, 126, 128, 128, 128, 129, 129, 129, 129, 129, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 127, 126, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 }; byte snare[] = { 127, 215, 65, 212, 56, 102, 135, 122, 51, 201, 220, 46, 175, 80, 152, 95, 123, 116, 184, 155, 59, 122, 100, 161, 143, 173, 101, 155, 97, 73, 112, 98, 176, 96, 140, 77, 134, 109, 132, 149, 112, 149, 97, 161, 98, 151, 98, 155, 149, 112, 157, 103, 133, 106, 167, 97, 166, 108, 129, 124, 136, 146, 124, 136, 129, 150, 94, 130, 105, 141, 146, 128, 129, 99, 150, 121, 141, 99, 142, 116, 131, 114, 118, 143, 127, 143, 115, 144, 120, 137, 109, 129, 131, 139, 129, 113, 144, 119, 145, 117, 135, 129, 134, 136, 124, 130, 130, 139, 121, 136, 121, 132, 128, 127, 126, 122, 130, 126, 138, 120, 136, 122, 131, 123, 130, 128, 127, 128, 118, 132, 125, 131, 122, 131, 125, 131, 122, 126, 128, 126, 129, 121, 129, 123, 132, 129, 127, 131, 123, 128, 125, 130, 123, 131, 123, 128, 131, 129, 128, 126, 125, 124, 131, 121, 124, 129, 130, 126, 124, 126, 127, 130, 125, 126, 128, 126, 128, 126, 126, 126, 126, 125, 128, 126, 126, 126, 126, 126, 126, 125, 128, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 126, 128, 126, 127, 126, 128, 125, 127, 128, 128, 126, 126, 128, 126, 126, 128, 128, 128, 128, 128, 126, 128, 126, 126, 128, 128, 126, 126, 128, 128, 126, 126, 127, 126, 128, 126, 126, 128, 128, 128, 126, 126, 126, 128, 128, 126, 126, 126, 128, 128, 126, 128, 128, 126, 126 }; byte hat[] = { 127, 128, 225, 217, 99, 38, 61, 153, 152, 144, 133, 73, 122, 144, 65, 188, 87, 170, 164, 111, 122, 151, 114, 88, 174, 77, 140, 92, 122, 141, 156, 124, 121, 123, 126, 133, 132, 139, 119, 120, 127, 141, 130, 122, 129, 127, 132, 121, 139, 118, 130, 131, 129, 132, 130, 134, 126, 128, 130, 126, 122, 132, 129, 127, 131, 126, 128, 127, 126, 125, 127, 125, 128, 125, 128, 128, 127, 127, 126, 127, 128, 128, 128, 127, 127, 127, 127, 127, 128, 127, 127, 126, 127, 127, 128, 127, 128, 126, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 126, 126, 128, 127, 126, 127, 126, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 126, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 126, 126, 127, 126, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 126, 127, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127 }; byte crash[] = { 127, 128, 225, 217, 99, 38, 61, 153, 152, 144, 133, 73, 122, 144, 65, 188, 87, 170, 164, 111, 122, 151, 114, 88, 174, 77, 140, 92, 122, 141, 156, 124, 121, 123, 126, 133, 132, 139, 119, 120, 127, 141, 130, 122, 129, 127, 132, 121, 139, 118, 130, 131, 129, 132, 130, 134, 126, 128, 130, 126, 122, 132, 129, 127, 131, 126, 128, 127, 126, 125, 127, 125, 128, 125, 128, 128, 127, 127, 126, 127, 128, 128, 128, 127, 127, 127, 127, 127, 128, 127, 127, 126, 127, 127, 128, 127, 128, 126, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 126, 126, 128, 127, 126, 127, 126, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 126, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 126, 126, 127, 126, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 126, 127, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127 }; void setup() { DDRD = DDRD | B11111100; //In attempt to try and use an ATtiny, I got an error here } void loop() { for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar2[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar3[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar2[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar4[j]); } } // Playback Functions void playBeat(byte beat) { if(beat == 0) { for(int i = 0; i < 256; i ++) { delayMicroseconds(analogRead(0) + 1); } } else if(beat == 1) { playKick(); } else if(beat == 2) { playSnare(); } else if(beat == 3) { playHat(); } else if(beat == 4) { playCrash(); } delay(delayTime); } void playKick() { for(int i = 0; i < 256; i ++) { PORTD = kick[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playSnare() { for(int i = 0; i < 256; i ++) { PORTD = snare[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playHat() { for(int i = 0; i < 256; i ++) { PORTD = hat[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playCrash() { for(int i = 0; i < 256; i ++) { PORTD = crash[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; }

Topic by blinkyblinky  


Can i use Arduino uno Vin port and its usb port simultaneously?

Im fairly new to this. I need to have the arduino connected to my computer as it is receiving commands through a java script application.  the arduino then sends signals to a few servo's that i was going to power using an external battery. I was just wondering whether i then connect this battery to arduino's vin port (considering that is already powered on using the usb?).  I hope this makes sense.

Question by HassanN2    |  last reply


Interfacing a parallel port and L293D motor drive( PWM)?

I have interfaced a L293D directly with the lpt port of my desktop. A java code in the cpu generates an output of either +5 or 0V. There is no other connection between the parallel port and the l293d. These voltages from the lpt are inputs directly to the motor drive, and the motor rotates when the code runs. My question is: Can you perform pulse width modulation, without using a micro controller? Is there a java code that can do this?

Question by gregarious1987    |  last reply