# Search results

1. ### program that counts all the vertices in a given tree

Thanks for your comments but I think this is the kind of tree I need to work with: https://en.wikipedia.org/wiki/Binary_tree
2. ### program that counts all the vertices in a given tree

I'm supposed to write a program that counts all the vertices in a given tree. Any language can be used. (I've been using Perl mostly but could do C too. C++ would be ok too, if it was significantly easier.) I'm not making much progress because I don't even know what the input is supposed to...
3. ### matlab code question

Hi, I've never used simulink, hopefully another user will have a suggestion. If not, you can try a forum specific to matlab such as this one: https://www.mathworks.com/matlabcentral/answers/ You may also try googling the error and see what comes up. Good luck
4. ### matlab code question

Hi, you will need to copy and paste the text of each file into an .m file. The following link explains how to do this: **broken link removed** Except where it says "type in your code" copy and paste it instead. Follow the procedure once for each file.
5. ### Implementation of Impulse Funtion of LTV System in Matlab

MODELING AND SIMULATION OF TIME-VARYING SYSTEMS http://www.fe.untz.ba/nastava/file.php/1/Obrada_i_prenos_digitalnih_signala_II/semin/sem_11.pdf
6. ### symmetric impulse response vs. antisymmetric impulse response

Yes, symmetry and antisymmetry are related to even and odd. Notice the symmetric filter reads the same forward and backward. Also if you graphed it with the middle number graphed on the y-axis, then you would see symmetry about the y-axis (that is, even) I thought it would be symmetric about 6...
7. ### Cantilever beam bending

I tried x = 100 (default), x = 1 and x = 0.0001. They all produce the same table posted previously. I even tried your example of the 3 ft. long Al bar. I converted all values to be in terms of inches: (E = 69444.444, I = 0.005208, q=386.4, L=36, x=1) and got the following results, just as...
8. ### Cantilever beam bending

Thanks so much for your help. The textbook is unhelpful, we never use it. I figure it would be easier to use this website: **broken link removed** I clicked on "cantilever" then picked the first one at the top, with Q and L. I put Young's modulus as 70 for Al, the moment of inertia I calculated...
9. ### Cantilever beam bending

Thanks, The fluid is air, assumed to be nitrogen, formula was already simplified using this assumption but pressure is still in there. I'll just use 1 torr since rough vacuum seems like a suitably low pressure. I had already decided this but won't edit it since you already replied to it. I...
10. ### ln(1+exp(a.x)) expression ?

I think that the dot means multiplication as in "a multiplied by x" Anyway back to the question, to figure out the series follow this tutorial on Taylor/Maclaurin series: Pauls Online Notes : Calculus II - Taylor Series
11. ### Cantilever beam bending

I'm trying to calculate the tip deflection of a horizontal cantilever beam for various materials and lengths, assuming the only force is gravity. According to the lecture notes, the formula is this: $y^{tip}_{gravity} = \frac{3 \rho (L^4)}{2 E t^2}g$ (Just in case the picture doesn't show...
12. ### Need switch for Xbee bidirectional i/o? (note: assume xbees working)

Need switch for Xbee bidirectional i/o? (note: not a wireless question) Not a wireless question, assume xbees work. I'm considering Xbee bidirectional i/o line passing. I would have a situation like this one: (Note: I've been told that on an Xbee, some pins can be input and some can be...
13. ### Translating C code into words

This is code for an Atmega32-based PS/2 mouse controlled with accelerometers. I'm looking at the function for generating the packet. Right now I'm only considering pointer movement, not scroll or buttons, so those have been omitted from the code sample below. I'm trying to figure out what this...
14. ### How to debug PS/2 protocol?

Thanks for posting this, I wonder if it would work on AVR? Probably not, I'll need to buy PIC and a programmer. (When I try to compile this on Codevision, it says "too many errors, compilation process stopped." ) Did you use 18F4550 or 18F2550 ? For programmer, PICKit2? Also, what...
15. ### How to debug PS/2 protocol?

I'm looking at the function for generating the packet. Right now I'm only considering pointer movement, not scroll or buttons, so those have been omitted from the code sample below. I'm trying to figure out what this code is saying to do. Can anyone please help me interpret it? Just to check it...
16. ### How to debug PS/2 protocol?

Here is oscilloscope output. (picture and two movies) In the attachment (scope.zip): IMG_6103.jpg is output of the data line MVI_6104.avi is the clock line MVI_6101.avi is output of one of the blinking LEDs on Port B (these were to test the ADC) -------- Update to this: I'm now using a better...
17. ### How to debug PS/2 protocol?

Regarding what you said about the 100uS thing, that's only if the host (that is, the computer) wants to inhibit communication. Do you think it might be stuck in inhibit instead of idle? (Both outputs would float high in that case too.) Why would the host want to inhibit communication? In other...
18. ### How to debug PS/2 protocol?

Hey prmurthy, You mentioned that you did a mouse project with PIC and USB. When you were doing that, how did you troubleshoot it? Thanks
19. ### How to debug PS/2 protocol?

Thanks for your response. The data and clock lines just stay on +5V all the time (idle state). The project you posted is cool, but I think I'll just stick with a multimeter. First of all, the project uses a parallel cable, I looked at the adapters they recommend and they look like the kind...
20. ### How to debug PS/2 protocol?

Here is my understanding of what this code is supposed to do. Rather than regular PS/2, which has 3-byte packets, this uC is emulating a Microsoft Intellimouse, with 4-byte packets. Packet is shown here: Compatibility of Type 2 Pointing Devices with MS IntelliMouse A PS/2 byte has 11 bits: 0 -...