Author Topic: Newbie look for major help  (Read 11047 times)

0 Members and 1 Guest are viewing this topic.

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Newbie look for major help
« on: August 24, 2013, 07:13:10 am »
Ok going to make this pretty simple. Im a hardware man and not a software guy and im looking for sumone to help me program micro controllers. I live in the middle of know where and have hit a million dead ends looking for sumone that will help/ teach me to program. And dont say get books becuse they all leave me more confused then ever if i get stuck becuse i got no one to help explain it. Its starting to drive me mental becuse i have a few projects id love to do but can not do them without micro controllers. Any help would be great and even better if we can pm about it. I have skype. Thanks to anyone that maybe able to help
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Newbie look for major help
« Reply #1 on: August 24, 2013, 07:18:32 am »
dont say get books becuse they all leave me more confused then ever

If you get confused reading books about learning programming then you're probably one of the many people that learn better by pulling apart working code to see how it functions.
ie, start with any one of the 1000 example arduino sketches that already flashes an led or whatever and then change things and see what happens.
« Last Edit: August 24, 2013, 07:20:51 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #2 on: August 24, 2013, 07:21:16 am »
Iv done that but im looking to control more advanced things
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Newbie look for major help
« Reply #3 on: August 24, 2013, 07:23:51 am »
Well, pick something about programming that you just don't understand, write some code that doesn't work then post it here and we will tell you whats wrong and how to fix it.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline notsob

  • Frequent Contributor
  • **
  • Posts: 696
  • Country: au
Re: Newbie look for major help
« Reply #4 on: August 24, 2013, 07:39:59 am »
here is a series of very good youtube tutorials on getting started with Atmel microcontrollers, how to install & setup winavr software to write code and program the micros, everything you need and walks you thru with a variety of examples.
For a programmer probably get a Usbasp ~ $4 on ebay

http://newbiehack.com/MicrocontrollerIntroductionABeginnersGuidetotheAtmelAVRAtmega32.aspx

http://www.ebay.com/itm/USBASP-USBISP-AVR-Programmer-Adapter-10-Pin-Cable-USB-ATMEGA8-ATMEGA128-Arduino-/310506909410?pt=LH_DefaultDomain_0&hash=item484ba76ee2


cheers

Peter
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #5 on: August 24, 2013, 07:52:35 am »
I allready have done basic ardunio stuff but im stuck on how to setup a pid controller with the ardunio UNO
 

Offline Kremmen

  • Super Contributor
  • ***
  • Posts: 1289
  • Country: fi
Re: Newbie look for major help
« Reply #6 on: August 24, 2013, 08:12:08 am »
Now you are effectively asking for private tuition. That is usually someone's paid job and i doubt anyone here will commit to anything like that.

One doesn't decide to be competent, one graduates into competency. The only way to do so is by climbing the hill from bottom up, as high as you need to go. How exactly you choose to do that is up to you but nobody else can do it for you.
Psi already gave the good advice; don't try to leapfrog into writing a PID control algorithm if you don't have a grasp of the basics. A polished piece of software such as a good PID implementation is a non-trivial thing and once you have written it yourself, there is a lot you understand about real time processing, signal manipulation, numeric computation and just plain writing code. All of that understanding won't just jump into your head, however much you want it to.
If you haven't yet written the canonical blink-a-led program, then that is where you should start. Achieving that momentous result is not as trivial as you might think because to do that, you need to be able to set up the programming toolchain, HW environment, transfer the program successfully to the device and actually run it there. Whatever you can't do in that exercise, there are people here and elsewhere who are glad to give pointers and identify problems. But it is you who need to do the legwork and strain your brain to understand. If that fails then all fails.
Nothing sings like a kilovolt.
Dr W. Bishop
 

Offline notsob

  • Frequent Contributor
  • **
  • Posts: 696
  • Country: au
Re: Newbie look for major help
« Reply #7 on: August 24, 2013, 08:15:25 am »
although the arduino is a good start, the newbiehack tutorials are in C, this will be of more use to you down the track than the arduino approach
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #8 on: August 24, 2013, 08:20:00 am »
Iv allready blinked a led and combined examples im just want help in geting a pid up and running then modifying it. I get the basics of a pid controller i just need a push in the right direction on getting the dam thing to do wat i want .
O and ps like i said in the begging i want sumone to teach me not just give me examples and leave me to work it out myself. Which i cant do as iv try and gone mental over it. Iv program the ardunio in c aswell just for more info for u guys
« Last Edit: August 24, 2013, 08:22:07 am by Andy932 »
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Newbie look for major help
« Reply #9 on: August 24, 2013, 08:50:28 am »
I don't know your intended application but you probably don't require a PID.
A lot of situation where a PID could be used can be done to an acceptable standard without a PID.

That said, if you do need one check out some youtube vids on PID controllers. You maybe able to find a vid that shows you each step in simple math which can be converted to a program without too much trouble.

I often find youtube vids explaining a concept much better than a pdf document full of advanced math formulas.
« Last Edit: August 24, 2013, 08:54:34 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #10 on: August 24, 2013, 09:18:28 am »
Im wanting to build a smart ac unit where the UNO becomes the main controller of the unit. i want it to have a network interface so i can link it to a pc and control it but also still be able to manually control it as a normal ac unit aswell. If u think it can be done without a pod then let me know. The part im stuck at is wat i can and cant do with the softwhere so i can finish off the hardware side.
« Last Edit: August 24, 2013, 09:26:39 am by Andy932 »
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Newbie look for major help
« Reply #11 on: August 24, 2013, 09:36:58 am »
I've not looked into how modern AC units control the temp, last time i saw inside one they had a relay for heating and a relay for cooling plus one temp sensor on the metal radiator and another temp sensor for the incoming air.

I think on modern ones they're more controllable than just on/off in order to get eco mode and different power levels etc.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #12 on: August 24, 2013, 09:46:10 am »
Most of the modern wall box units use a microcontroler with a pid wich control relays there pretty easy hack but i need help in programming a controller for my needs
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Newbie look for major help
« Reply #13 on: August 24, 2013, 09:54:28 am »
If it were me i would get it all wired up and controllable by the mcu before even thinking about the PID. You can make it heat/cool and maintain a temp without a PID using a few simple lines of code to switch on/off cooling/heating at preset temps.
It wont maintain a perfectly stable temp and will probably overshoot/undershoot a little but that doesn't matter for testing and is probably acceptable even for general use.
Remember old model AC units had no electronics, it was just an adjustable bimetal thermostat, and they worked ok.

When you have something that already works it's easier to add in more complex software because you always have the choice to give up and keep it as-is.
Working on the project then becomes more of a fun thing to try and add more features rather than a depressing... "if i can't do this the entire project is doomed".
« Last Edit: August 24, 2013, 10:08:54 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

jucole

  • Guest
Re: Newbie look for major help
« Reply #14 on: August 24, 2013, 11:11:07 am »
Ok going to make this pretty simple. Im a hardware man and not a software guy and im looking for sumone to help me program micro controllers. I live in the middle of know where and have hit a million dead ends looking for sumone that will help/ teach me to program. And dont say get books becuse they all leave me more confused then ever if i get stuck becuse i got no one to help explain it. Its starting to drive me mental becuse i have a few projects id love to do but can not do them without micro controllers. Any help would be great and even better if we can pm about it. I have skype. Thanks to anyone that maybe able to help

One of the reasons I like this forum is because you can learn so much from the posts;  but at the very least you can get a nudge in the right direction.   I'd be very surprised if anyone would give you personal tutoring BUT if you get your design done and post your code I'm sure lots of people will help you get it up and running.

Quote
and have hit a million dead ends
Only a million?  you're too impatient! ;-)  I spent two and a half years on my PID, mostly on evennings and weekends and it's still not completely finished.
https://www.eevblog.com/forum/projects/kiln-controller-project/msg192334/#msg192334


« Last Edit: August 24, 2013, 11:16:33 am by jucole »
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #15 on: August 24, 2013, 11:28:01 am »
Wat do u program in and wat controllers r u using
 

jucole

  • Guest
Re: Newbie look for major help
« Reply #16 on: August 24, 2013, 12:00:31 pm »
Wat do u program in and wat controllers r u using

I used C and a Microchip 16F877A, but those controllers are old-ish now, so best choose something more current.

I suggest you get an Arduino and start reading ADC input from a temperature sensor; then add some code to togggle a LED at the setpoint.  If that works then add a relay; then add a LCD display;  then add some buttons etc etc. but start small, and keep adding and testing until you get where you need to.


Some very simple C type pseudo code might look like:

Code: [Select]
// loop forever
while(1) {
    if (temp > setpoint) {
        turnOFFRelay();
    }
    else {
        turnONRelay();
    }
    updateLCD();  // display some stuff.
}



[Edit: Sorry I missed your posts about already having an Arduino.]
« Last Edit: August 24, 2013, 12:14:11 pm by jucole »
 

Online Shock

  • Super Contributor
  • ***
  • Posts: 4219
  • Country: au
Re: Newbie look for major help
« Reply #17 on: August 25, 2013, 02:30:52 am »
If you cannot find some generous soul, as others mentioned your going about it in the wrong way.
The internet in general does not care about you.  Why?  Because unless you contribute noones going to dedicate large chunks of personal time to you.

Google first, then ask yourself... am I any good at googling things?
If you can't find a good book you should be asking what the best books are.

After you have spent time on a problem and cannot progress.  Clearly define it and ask for input in the appropriate forum.
The unwritten rule of asking for help is never actually ASK for help.  Just state your problem.

Then move onto other work while you wait for a reply.  If it never comes ask elsewhere.

And if all else fails find an easier hobby.
 

Soldering/Rework: Pace ADS200, Pace MBT350
Multimeters: Fluke 189, 87V, 117, 112   >>> WANTED STUFF <<<
Oszilloskopen: Lecroy 9314, Phillips PM3065, Tektronix 2215a, 314
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Newbie look for major help
« Reply #18 on: August 25, 2013, 03:56:53 am »

Ok going to make this pretty simple. Im a hardware man and not a software guy and im looking for sumone to help me program micro controllers. I live in the middle of know where and have hit a million dead ends looking for sumone that will help/ teach me to program. And dont say get books becuse they all leave me more confused then ever if i get stuck becuse i got no one to help explain it. Its starting to drive me mental becuse i have a few projects id love to do but can not do them without micro controllers. Any help would be great and even better if we can pm about it. I have skype. Thanks to anyone that maybe able to help

A microchip can do everything you can do with hardware, with one caveat.  There will always be a greater latency, in most cases the delay is acceptable.  In situations where synchronous delays are not acceptable reduced asynchronous operations can be achieved with FPGAs etc. 

The process starts in the exact same way as hardware design, with design specifications and requirements. When you decide on your requirements you select the devices required just like every hardware design. The process is the same just to tools used differ. 
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11891
  • Country: us
Re: Newbie look for major help
« Reply #19 on: August 25, 2013, 04:43:07 am »
On the subjects of home AC units and temperature control, maybe someone could clue me in on a detail?

As far as I know (my own AC unit for example), the AC has a compressor which can be turned on and off. Unless it is more sophisticated than the one sitting here beside my house it doesn't have any intermediate load levels; on or off is all it has.

My electronic thermostat therefore has a simple function: when the measured temperature exceeds one degree above the set temperature, the unit is turned on. The AC then runs at full power until the measured temperature falls one degree below the set temperature at which point it is turned off. Since the house has a significant thermal capacity these on/off cycles run for maybe 20 minutes at a time.

That said, how might PID control come into the picture? PID control is a continuous algorithm. (Granted the industrial version is commonly implemented in discrete fashion, but typically the discrete time steps are so short relative to the dominant time constant of the system that we may assume the control to be continuous.)

If PID control is continuous, but an AC compressor is either on or off, then there is a mismatch between the controller and the system being manipulated. One could perhaps render a pseudo-continuous system by applying PWM control to the AC compressor, but this would have the unfortunate potential of turning the compressor on and off at frequent intervals. AC units don't like that and may fail in short order if subjected to such abuse.

One could modify the PWM so that the AC compressor is turned on and off at long intervals, but then you are getting back towards the on/off (or "bang bang") control where we started.

So I don't get it. How does PID control apply to home AC units?

« Last Edit: August 25, 2013, 05:31:35 am by IanB »
 

Offline MrAureliusR

  • Supporter
  • ****
  • Posts: 373
  • Country: ca
Re: Newbie look for major help
« Reply #20 on: August 25, 2013, 05:02:18 am »
And I guess there's no rule against it but "wat" is spelt "what"... please use correct spelling if not correct grammar, especially when asking for help - it's just common courtesy. It took me twice as long to read your short posts than it did to read the properly written long ones.

Typed using Hacker's Keyboard for Android

--------------------------------------
Canadian hacker
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Newbie look for major help
« Reply #21 on: August 25, 2013, 05:03:44 am »
Wat do u program in and wat controllers r u using

wat
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16284
  • Country: za
Re: Newbie look for major help
« Reply #22 on: August 25, 2013, 05:23:29 am »
The latest whizz bang units use an inverter on the output side along with a variable valve for throttling the metering of refrigerant into the evaporator. The compressor starts at a low speed and slowly ramps up to give a constant head pressure to the expansion valve which is opened and closed as the load varies to keep the outlet air at a constant temperature and the temperature is adjusted as inlet air temp lowers to reach a set point where the system is only pumping the amount that will handle the heat load of the people in the room and the leak through doors and walls along with solar load. Complex, has a microcontroller inside talking to one outside via a 1 or 2 wire bus and has very poor reliability as the outdoor electronics generally are a bare board with typically no conformal coating or even a  dust proof case. Not good from a reliability perspective, and the compressors often get damaged by a failing board, so often you have to replace the board and compressor as a unit.
 

Offline Andy932Topic starter

  • Contributor
  • Posts: 21
  • Country: au
Re: Newbie look for major help
« Reply #23 on: August 25, 2013, 05:58:35 am »
Well wats the best way for me to give u guys a design layout. And i cant spell so yer. I need to make up a design layout and the. For sumone to tell me if it can be done
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Newbie look for major help
« Reply #24 on: August 25, 2013, 06:09:59 am »
Are you simply asking for a complete solution and expecting people here to build it for you starting from the controller selection, circuit building up to PCB layout, and also teach you all the way down ? And for free ? :palm:


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf