Mike: Mi field is not electronics and thanks for your time and help but I still a little confuse. You provided mi with the link to this circuitry. This is a treadmill controll that is comercially aproved and widely use in that industry. Are you telling me that it is not safetely designed because they did not use a transformer to step down the voltage or you are advicing me not toprototype with the arduino without isolating the high voltage from it?YES, YES, YES
First, read this Wiki, which discusses the power distribution grid. There are differences in different countries, but this description likely covers your specific situation in your country...
I have prepared the following diagram and simulation. The box on the left represents the Electrical Distribution Grid. I show it as a 230V AC voltage source, one side of which (doesn't matter which) is referenced to earth ground. This is intrinsic in your country's grid. All voltages shown are with respect to earth ground.
Look at the voltage at the node "hv" V(hv), green trace. Note that is always positive. It is a half-wave rectified wave, with a peak voltage of 325V (1.414*230V). Now look at V(arduinognd), red trace. Note that it is the mirror image of V(hv), but delayed by 180 degrees. Finally, look at the current that flows through R1, I(R1) blue trace. It is as you expect, the normal full-wave rectified waveform.
The reason that this circuit is a death trap is because the instantaneous voltage on the ArduinoGnd side of the circuit goes to a peak of -325V. Imagine that you have the USB cable plugged between the Arduino and your computer. Now either of two very bad things can happen:
All desktop computers I have ever worked with have a direct connection from their metal box to earth ground. This is shown in schematic as the dashed line. The USB plug 0V pin is connected to the computer's metal box. The instant you plug this in, there will be a huge explosion, with a huge current flowing through the Arduino, along the USB cable, through the computer to earth ground. You will blow something up...
If your computer is a laptop, which might have a transformer-coupled isolated power supply, you may avoid the explosion described above, but you have now connected the exposed metal parts (d-sub shell, video connector shell, modem cable, usb cable, network cable, phone line, touch-pad) of the lap-top computer to -325V.
If there are any grounded peripherals plugged into the laptop, chances are they get back to earth ground some other way, and you are back to the explosion. If nothing touches earth ground, then the metal parts of the laptop, and all thing plugged into it are hot... Imagine your kid coming to use your laptop to play a game...
Sorry to be blunt, but if I have to explain this to you, you have no business playing with transformer-less, off-line circuits...