Controlling the toy car [closed] - c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I wanted to control a toy car, that has two wires for voltage and two other wires for data in and data out.
I wanted to design, to control the car. The Idea is to control it with the mouse movement. If clicked the car has to start, if clicked twice the car has to stop and should move in left and right directions.
How can this be designed ?

In general, you will need a microcontroller attached to the car (e.g. Aurdino) and a communication mechanism between your computer and the microcontroller (e.g. Bluetooth or Wi-Fi).
You computer will send the command to the microcontroller which is wired to the car.
You can take a look at this Bluetooth Controlled Arduino RC Car to get an idea of how to start.

Related

C - Linux create sound in kernel mode [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I need o write a kernel mode driver that plays a note when a key is pressed. I can capture keystrokes but I have no idea how to play sound from kernel. What do I have to do to play a sound? I am brand new to creating drivers.
I need o write a kernel mode driver that plays a note when a key is pressed.
Why?
Seriously, why. What's the reasoning behind this "need"? What's the true reason for the need to play a sound? Maybe there is a better way.
Assuming a PC, with the pcspkr module loaded, you can of course call its functions. But if you want to play something through the soundcard, you'll essentially have to "open" an ALSA device (inside the kernel), and call its fops, all along while user space may do the same thing.

How do I write to a pin on a Microcontroller? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
In our school project, we have to write a code for a "soft start" to our miniature elevator. I'm supposing what they mean is that we should use the POWER-UP-timer so that the voltage levels stabilize after a restart. So in the block diagram, it seemed to be connected to VDD and VSS, which is ports 5 and 14. How do I write the code? Is there something I'm forgetting?
I don't really know where to start.
Soft start is where the motor starts slowly and gradually increases speed.
This is very useful especially in high-speed elevators as it keeps the passengers alive and happy.
If it's a brush motor use PWM. If it's a stepper vary the step rate and maybe use microstepping. if it's an induction motor your task is to build a VFD, good luck!

How to interface Keypad & LCD using 8051 Microcontroller [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I got a project from college, i have to do "Keypad to LCD interference using 8051 microcontroller".
Explained: Means when i press key 1, it'll show my name on lcd, by pressing key 2, it'll show my roll number & vice versa.
I just know one thing that this can be code in keil and then we have to burn it using 8051 microcontroller . Can anyone please help me with coding ?
Thanks in advance.
This will help you to interface the LCD and KEYPAD to 8051 micro-controller.
Follow the same on the link and modify the code as your requirement for the keypad. I had implemented the same for my project of developing a basic calculator with 8051.

Is socket programming what I need? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So I'm developing a 2d game using sdl1.2 on linux as a part of a college project and I need the player to be able to submit his score to know his ranking against other players who played the game aswell and I was wondering what am I going to need in order to achieve this with C, is socket programming the answer?
Thank you.
Yes, if your concern is about the communication, then socket is the only way, of course there are easy to use wrappers around socket, like zeromq etc.
The server would create a server socket and listens on it, and each client will connect to this server and then send the scores and any other data necessary to the server.
For data persistent, you can use embedded database like SQLite or leveldb etc.

Can cellphone app send/receive data like old dialup phone modem? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I remember that
old modems used phone lines to transfer internet data.
I'm aware that it would be expensive (see edit notes below) and most mobile phones have cellular internet.
But here's my question:
How Can i transfer internet data over mobile phone "call line" without additional hardware?
EDIT:
I'd like to transfer data via voice channel.
I made some calculations and the results are that transfer at 56Kbits per second would be 20 times more expensive then using internet provided by cell company.
The answer if its possible is:
-probably yes for android and
-no for iOS
Here is a video for acoustic modem using speaker and mic http://www.youtube.com/watch?v=bLRK51_1L2k
I guess it would be possible to make Android app that would receive call and demodulate incoming data.
As for the iOS - the problem is in their Terms Of Service.
Because Apple don't want anybody to record phone calls (to obey the anti wire-tapping laws),
it dosn't allow to forward call to app.

Resources