Arduino script for h-bridge reverse polarity and a few extras

Closed

Dear friends I need you to write a script for Arduino board. I will connect a h-bridge to control electromagnet. I need to change the polarity of the electromagnet very fast - from 100 to 1000 microseconds.

The reversal of polarity will be represented as 0's or 1's as you will see on the attached images.

- I want to be able to change your code and put the sequence of 0's and 1's that I need.

- The code wont be changed very frequently (maybe only to add a few symbols) so you don't need very complex code (simple is always better).

- I will need to put more or less 0's or 1's.

- For every reversal there is a fixed time in microseconds. For example the 1's are always 50% of the time for 0's - if a 0's are 500 microseconds the 1's should be 250 microseconds.

- I will need to have between 100 and 150 (maybe some more) (real example: 00001101101110000011010110101010000110001011100010110000100001011010011111001101100011111100110001010111101101110)

I need to connect 2 LED sensors that will sense the time between the activation/deactivation (example 50 or 60 or 100 ... etc. milliseconds) and based on that time the code and the time for 0's and 1's to be automatically adjusted.

- Example If I have 100 symbols - 50 of them 0´s and 50 will be 1's and the time for all is - 50x250 microseconds (the 1's are half the time of 0's ) + 50x500microseconds = 37500 microseconds (37,5 milliseconds). If the time from the sensors is 50 milliseconds the values of the 0's and 1's should be corrected automatically to suit the time from the sensors (50ms) multiplied by 2 for example (or 1,5; 1,6; 2; 3;4 will be hard coded only once). And so the time from the sensor will be 100ms and so the time of the 0's and 1's should be corrected properly and will not be 250 and 500 microseconds, it will be a litte bit more.

There are only 2 variables after we have the time from sensor - time for 0´s and time or 1´s.

I will accept code that is working, it doesn't matter how is written. Just need an explanation how it is working and where to change it to put more 0's or more 1's and to change the multiplier for the time from the sensors.

I have attached some pictures from internet where you can see how the 0's and 1's are interpreted on magnetic tape.

You can ask me anything you want. I have a little experience with Arduino and you are welcome to suggest whatever you think will suit my needs.

Skills: Arduino, Electronics, Microcontroller, Software Architecture, Software Testing

See more: arduino electromagnet polarity, just a little bit, H, h and h, code arduino, bridge, arduino, Arduino code, arduino 4*4, arduino arduino, sensor arduino, arduino sense, pictures reverse, add 1000 friends, microcontroller board, microcontroller example, arduino microcontroller code, internet microcontroller, microcontroller fast, 100 arduino, arduino bit, arduino 100, board bridge, bridge example, arduino sensors

Project ID: #5338076

21 freelancers are bidding on average €222 for this job

usamacpp

We are a team of professional engineers in C/C++/C# for windows Objective-C for MAC and iOS and Java for Android, with 14 years experience in programming field. We are professionals in hardware development and embed More

€244 EUR in 15 days
(9 Reviews)
5.6
eried

Hola, ¿Cuánta precisión esperas de la salida? Originalmente las rutinas de arduino tienen un pequeño delay (lo que quizás impacte para lo que quieras ese electroimán). Yo puedo fácilmente hacer un script que pro More

€194 EUR in 2 days
(72 Reviews)
5.5
grrod

Hi venzo. Im Greg. Im Telecommunication engineer. I can help you with your project. I have worked in many projects with Arduino. I can build a prototype and ship to you or send the code. Ive programmed directly f More

€300 EUR in 15 days
(8 Reviews)
5.1
HosElectro

experienced embedded systems / electronics engineer with experience in arduino and microcontroller for over 5 years, i can help you with your project please check my feedback on my profile as well as my own website for More

€237 EUR in 3 days
(17 Reviews)
5.0
slavaten

Hi, I can not say that fully understood the task. But is willing to discuss the details. Relevant experience with Arduino is.

€200 EUR in 7 days
(9 Reviews)
4.9
theenggprojects

Hi, I am a Mechatronics and Control Engineer, you can check my work on my blog www.TheEngineeringProjects.com , I am an expert in Arduino. Its better if you add me on skype so that we could have a detailed chat over More

€200 EUR in 10 days
(18 Reviews)
4.8
betaenergy

Dear Sir, We are Reserach and Development company whose working area are : -Digital Motor Control -Analog Design -Electronic Design -Power Electronics -PCB design -Embedded system -Matlab -Simulation of ha More

€210 EUR in 7 days
(15 Reviews)
4.7
shahbaz1980

hello, i can provide the working circuit. please specify the choice of arduino. i have other options instead of using H bridge. Please feel free to contact. Best regards, Shahbaz.

€581 EUR in 15 days
(15 Reviews)
4.6
LuisMa

I have working with Arduino projects the last four years. The type of work described by you is within my skills. I am very interested to assist you in your development needs.

€222 EUR in 7 days
(3 Reviews)
4.4
cbayanwala

Hi, I've worked on several Arduino projects including a quadrotor, and I think I can help you out on this one. One of the projects I worked on involved reading a signal from the source of a laser, and after a delay More

€150 EUR in 15 days
(3 Reviews)
3.8
VoblNet

Hello. Tell me which version you are using Arduino? If you have identified contacts connect to an external circuit elements, please let me know.

€225 EUR in 5 days
(2 Reviews)
3.4
jacer81

Hello, Let me introduce my self. I am Yasir Amir, you can search me on web I am also running and online consultancy business. I am an experienced guy and have worked on many similar projects. Pls check out my profil More

€195 EUR in 10 days
(5 Reviews)
2.8
raheel2023

hi we are team of experts having more then 8 years of experience in embedded control system development we delivered more then 60 products to clients build on microchip platform we have professional expertise on ardu More

€155 EUR in 15 days
(3 Reviews)
2.8
jainvikas8

hi, I have worked with Arduino a lot... unfortunately I don't have good reviews on this site... but can show you one... Can i ask which arduino you are working with... Because the timing you are looking mig More

€200 EUR in 2 days
(1 Review)
2.8
Magicspell

Hello, Expert in Arduino, Raspberry Pi modules. Can work with AVR, PIC MCUs... Your project can be easily implementable using Timer features... Please see www.official.jontropati.com More

€166 EUR in 10 days
(1 Review)
1.7
amankaushal90

I am an expert in Arduino , I have done this before . Need not worry about the milestone payment unless and until you are satisfied do not release the final milestone. Please feel free to contact me through a private m More

€111 EUR in 5 days
(0 Reviews)
0.0
johnklima

Greetings! Sounds like an interesting project. I've played around quite a bit with Arduino, and basic stamps back in the day. I also have experience building h-bridge motor controllers. here's a link to a huge and c More

€200 EUR in 5 days
(0 Reviews)
0.0
ShaheerJaan

Hi. I am a professional Electronics Engineer having 6 years of experience in programming micro controllers and arduino. I CAN PROVIDE YOU THE WORKING CODE AND OTHER OF YOUR REQUIREMENTS TOO. Contact me.

€166 EUR in 3 days
(0 Reviews)
0.0
aviravi92

A proposal has not yet been provided

€234 EUR in 30 days
(0 Reviews)
0.0
GabrielSoare

Hello there. I am confidend with scalability used on electronic signals For protection of the android I will need to put a Diode. In this price you will get an workable device so you don't need to lose time to test it. More

€194 EUR in 10 days
(0 Reviews)
0.0