jippie

Eindhoven, Netherlands

wirespeed.xs4all.nl/mediawiki

Age: 46

An interesting new proposal on SE: SCADA

I'm into:

  • Linux;
  • Networking;
  • IT Security;
  • Perl;
  • System integration;
  • Arduino;
  • ATtiny & ATmega Microcontrollers (AVR);
  • Analog electronics;
4h
awarded Yearling
4h
awarded Yearling
14h
comment Atmega8 - Max output frequency seems to be devide by 4
You may also want to check out what your interrupt routine looks like. As I noted before, you'll probably be amazed what is happening there. For really high frequency output you'll have to configure a timer to drive a GPIO pin. Refer to the chapter of timers and counters in the datasheet.
15h
comment Atmega8 - Max output frequency seems to be devide by 4
Actually I made one mistake, probably accounted for by you setting OSCAL to 255. The expected frequency at 8MHz clock (so without loading OSCAL) is 8MHz / ( 2 × 5 ) = 800kHz. 5 clock ticks per half cycle, 10 ticks per full cycle.
15h
comment Atmega8 - Max output frequency seems to be devide by 4
Right. -8 bytes, considering that the progam counter at the moment of the subtraction is pointing to the instruction following the rjmp, which results in 0x01f2 - 0x0008 = 0x1ea which is the address shown in the comments.
15h
comment Atmega8 - Max output frequency seems to be devide by 4
I'm not sure you noticed that the loop jumps back to 0x1ea in r24, 0x02, so there are 4 instructions in the loop consuming a total of 5 clocks per half period of the output square wave. 8MHz / 5 clk = 1.6MHz
15h
comment sine wave rectifier in series with inductor phase calculation help. Thanks
Power factor is sensible whatever the current waveform is, cos(φ) (or displacement power factor) however is only sensible with sine waves. @user1582568 en.wikipedia.org/wiki/Power_factor#Non-linear_loads
17h
comment How to find the current?
Start by calculating the voltage at the middle node from the given Vo and V. Give that node its own name.
17h
comment Atmega8 - Max output frequency seems to be devide by 4
Also, most instructions take one clock second, but not all. There is a table in the datasheet listing a instruction summary including clock cycles. Definitely disassembling is very educational. If you are developing on Linux I have a generic makefile that includes a disassembly listing. git.linformatronics.nl/gitweb/?p=makefile;a=summary With interrupts you may be surprised about the overhead.
1d
comment Reusing webcam from laptop. Need to figure out the configuration of wires
Nearly exact duplicate of: electronics.stackexchange.com/questions/216093/…
1d
comment Reusing webcam from laptop. Need to figure out the configuration of wires
Nearly exact duplicate of: electronics.stackexchange.com/questions/216093/…
1d
comment please explain how this program worked
I think the code can be summarize as: control: goto control. (check P1 set at the start and the if statements).
Feb
8
comment Error on Uploading Program to ESP8266 via Foca v2.2 (USB to TTL Adapter)
Failed to open COM4 there is your first problem to look into.
Feb
8
comment Is it better to have a larger resistor or a smaller one?
Why not copy the context into your question rather than just posting a link to it?
Feb
8
comment LIS3DH draws upto 10mA more when I set H_LACTIVE bit in CTRL_REG_6
If you want others to help you, provide sufficient details. Eg. where are is the link to the datasheet?
Feb
7
comment Capapcitor value in schematic with "mk" units
wiki.xtronics.com/index.php/Capacitor_Codes
Feb
7
comment Capapcitor value in schematic with "mk" units
@tcrosley I believe it is a payed standards document, I couldn't find any working links either.
Feb
7
comment Speed control on a ceiling fan induction motor
AC motors must have changed then since I learned about them 25 years ago. Or asynchronous motors must be a regional thing? @RainerP.
Feb
7
comment Speed control on a ceiling fan induction motor
Usually speed control on motors in this application works by changing stator windings, are there any unconnected wires left? Did the motor support multiple speed settings before you made it work?
Feb
7
comment Speed control on a ceiling fan induction motor
It does say "AC Motor Speed Controller" in the page title @RainerP.
1 2 3 4 5