An ultrasonic transducer may comprise: a substrate a barrier wall on the substrate a diaphragm fixed to the barrier wall and defining a cavity, together with the barrier wall and the substrate a pair of electrodes, facing each other with the cavity therebetween, configured to receive a driving voltage for driving the diaphragm and/or a plurality of posts in the cavity and having a height smaller than that of the barrier wall.